1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_LINUX_ISDN_PPP_H 7 #define _UAPI_LINUX_ISDN_PPP_H 8 #define CALLTYPE_INCOMING 0x1 9 #define CALLTYPE_OUTGOING 0x2 10 #define CALLTYPE_CALLBACK 0x4 11 #define IPPP_VERSION "2.2.0" 12 struct pppcallinfo 13 { 14 int calltype; 15 unsigned char local_num[64]; 16 unsigned char remote_num[64]; 17 int charge_units; 18 }; 19 #define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo) 20 #define PPPIOCBUNDLE _IOW('t',129,int) 21 #define PPPIOCGMPFLAGS _IOR('t',130,int) 22 #define PPPIOCSMPFLAGS _IOW('t',131,int) 23 #define PPPIOCSMPMTU _IOW('t',132,int) 24 #define PPPIOCSMPMRU _IOW('t',133,int) 25 #define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long [8]) 26 #define PPPIOCSCOMPRESSOR _IOW('t',135,int) 27 #define PPPIOCGIFNAME _IOR('t',136, char [IFNAMSIZ] ) 28 #define SC_MP_PROT 0x00000200 29 #define SC_REJ_MP_PROT 0x00000400 30 #define SC_OUT_SHORT_SEQ 0x00000800 31 #define SC_IN_SHORT_SEQ 0x00004000 32 #define SC_DECOMP_ON 0x01 33 #define SC_COMP_ON 0x02 34 #define SC_DECOMP_DISCARD 0x04 35 #define SC_COMP_DISCARD 0x08 36 #define SC_LINK_DECOMP_ON 0x10 37 #define SC_LINK_COMP_ON 0x20 38 #define SC_LINK_DECOMP_DISCARD 0x40 39 #define SC_LINK_COMP_DISCARD 0x80 40 #define ISDN_PPP_COMP_MAX_OPTIONS 16 41 #define IPPP_COMP_FLAG_XMIT 0x1 42 #define IPPP_COMP_FLAG_LINK 0x2 43 struct isdn_ppp_comp_data { 44 int num; 45 unsigned char options[ISDN_PPP_COMP_MAX_OPTIONS]; 46 int optlen; 47 int flags; 48 }; 49 #endif 50