2 ppp_str.h - streams version include file
4 defines ioctl calls for MRU, COMPPROT and ASYNCMAP
6 Copyright (C) 1990 Brad K. Clements, All Rights Reserved,
7 See copyright statement in NOTES
10 #include <sys/ioccom.h>
13 #define SIOCSIFCOMPAC _IOW('p', 130, char)
14 #define SIOCSIFCOMPPROT _IOW('p', 131, char)
15 #define SIOCSIFMRU _IOW('p', 132, int)
16 #define SIOCGIFMRU _IOR('p', 133, int)
17 #define SIOCGIFASYNCMAP _IOR('p', 134, long)
18 #define SIOCSIFASYNCMAP _IOW('p', 135, long)
19 #define SIOCGETU _IOR('p', 136, int) /* get unit number */
20 #define SIOCSIFVJCOMP _IOW('p', 137, char) /* enable/disable VJ Compression */
21 #define SIOCGIFDEBUG _IOR('p', 138, int) /* get debug flags */
22 #define SIOCSIFDEBUG _IOW('p', 139, int) /* set debug flags */
25 /* traditional C compiler */
26 #define SIOCSIFCOMPAC _IOW(p, 130, char)
27 #define SIOCSIFCOMPPROT _IOW(p, 131, char)
28 #define SIOCSIFMRU _IOW(p, 132, int)
29 #define SIOCGIFMRU _IOR(p, 133, int)
30 #define SIOCGIFASYNCMAP _IOR(p, 134, long)
31 #define SIOCSIFASYNCMAP _IOW(p, 135, long)
32 #define SIOCGETU _IOR(p, 136, int) /* get unit number */
33 #define SIOCSIFVJCOMP _IOW(p, 137, char) /* enable/disable VJ Compression */
34 #define SIOCGIFDEBUG _IOR(p, 138, int) /* get debug flags */
35 #define SIOCSIFDEBUG _IOW(p, 139, int) /* set debug flags */
40 #define PII_FLAGS_INUSE 0x1 /* in use by a stream */
41 #define PII_FLAGS_COMPAC 0x2
42 #define PII_FLAGS_COMPPROT 0x4
43 #define PII_FLAGS_ATTACHED 0x8 /* already if_attached */
44 #define PII_FLAGS_VJC_ON 0x10 /* VJ TCP header compression enabled */
45 struct ifnet pii_ifnet;
46 queue_t *pii_writeq; /* used by ppp_output */
48 struct slcompress pii_sc_comp; /* vjc control buffer */
63 /* defines for streams modules */
64 #define IF_INPUT_ERROR 0xe1
65 #define IF_OUTPUT_ERROR 0xe2
67 #define ALLOCBSIZE 64 /* how big of a buffer block to
68 allocate for each chunk of the input chain */