-/*
- * Buffers for the PPP process have the following structure
- */
-
-#define RBUFSIZE 2048 /* MUST be a power of 2 and be <= 4095 */
-
-struct ppp_buffer {
- __s32 size; /* Size of the buffer area */
- __s32 count; /* Count of characters in bufr */
- __s32 head; /* index to head of list */
- __s32 tail; /* index to tail of list */
- __u32 locked; /* Buffer is being sent */
- __s32 type; /* Type of the buffer */
- /* =0, device read buffer */
- /* =1, device write buffer */
- /* =2, daemon write buffer */
- /* =3, daemon read buffer */
- __u16 fcs; /* Frame Check Sequence (CRC) */
- __u8 filler[4]; /* Extra space if needed */
-};
-
-/* Given a pointer to the ppp_buffer then return base address of buffer */
-#define buf_base(buf) ((__u8 *) (&buf[1]))