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