1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef _IF_PPP_H_ 13#define _IF_PPP_H_ 14 15#include <linux/compiler.h> 16 17#define PPP_MTU 1500 18#define PPP_MAXMRU 65000 19#define PROTO_IPX 0x002b 20#define PROTO_DNA_RT 0x0027 21 22#define SC_COMP_PROT 0x00000001 23#define SC_COMP_AC 0x00000002 24#define SC_COMP_TCP 0x00000004 25#define SC_NO_TCP_CCID 0x00000008 26#define SC_REJ_COMP_AC 0x00000010 27#define SC_REJ_COMP_TCP 0x00000020 28#define SC_CCP_OPEN 0x00000040 29#define SC_CCP_UP 0x00000080 30#define SC_ENABLE_IP 0x00000100 31#define SC_LOOP_TRAFFIC 0x00000200 32#define SC_MULTILINK 0x00000400 33#define SC_MP_SHORTSEQ 0x00000800 34#define SC_COMP_RUN 0x00001000 35#define SC_DECOMP_RUN 0x00002000 36#define SC_MP_XSHORTSEQ 0x00004000 37#define SC_DEBUG 0x00010000 38#define SC_LOG_INPKT 0x00020000 39#define SC_LOG_OUTPKT 0x00040000 40#define SC_LOG_RAWIN 0x00080000 41#define SC_LOG_FLUSH 0x00100000 42#define SC_SYNC 0x00200000 43#define SC_MUST_COMP 0x00400000 44#define SC_MASK 0x0f600fff 45 46#define SC_XMIT_BUSY 0x10000000 47#define SC_RCV_ODDP 0x08000000 48#define SC_RCV_EVNP 0x04000000 49#define SC_RCV_B7_1 0x02000000 50#define SC_RCV_B7_0 0x01000000 51#define SC_DC_FERROR 0x00800000 52#define SC_DC_ERROR 0x00400000 53 54struct npioctl { 55 int protocol; 56 enum NPmode mode; 57}; 58 59struct ppp_option_data { 60 __u8 __user *ptr; 61 __u32 length; 62 int transmit; 63}; 64 65struct ifpppstatsreq { 66 struct ifreq b; 67 struct ppp_stats stats; 68}; 69 70struct ifpppcstatsreq { 71 struct ifreq b; 72 struct ppp_comp_stats stats; 73}; 74 75#define ifr__name b.ifr_ifrn.ifrn_name 76#define stats_ptr b.ifr_ifru.ifru_data 77 78#define PPPIOCGFLAGS _IOR('t', 90, int) 79#define PPPIOCSFLAGS _IOW('t', 89, int) 80#define PPPIOCGASYNCMAP _IOR('t', 88, int) 81#define PPPIOCSASYNCMAP _IOW('t', 87, int) 82#define PPPIOCGUNIT _IOR('t', 86, int) 83#define PPPIOCGRASYNCMAP _IOR('t', 85, int) 84#define PPPIOCSRASYNCMAP _IOW('t', 84, int) 85#define PPPIOCGMRU _IOR('t', 83, int) 86#define PPPIOCSMRU _IOW('t', 82, int) 87#define PPPIOCSMAXCID _IOW('t', 81, int) 88#define PPPIOCGXASYNCMAP _IOR('t', 80, ext_accm) 89#define PPPIOCSXASYNCMAP _IOW('t', 79, ext_accm) 90#define PPPIOCXFERUNIT _IO('t', 78) 91#define PPPIOCSCOMPRESS _IOW('t', 77, struct ppp_option_data) 92#define PPPIOCGNPMODE _IOWR('t', 76, struct npioctl) 93#define PPPIOCSNPMODE _IOW('t', 75, struct npioctl) 94#define PPPIOCSPASS _IOW('t', 71, struct sock_fprog) 95#define PPPIOCSACTIVE _IOW('t', 70, struct sock_fprog) 96#define PPPIOCGDEBUG _IOR('t', 65, int) 97#define PPPIOCSDEBUG _IOW('t', 64, int) 98#define PPPIOCGIDLE _IOR('t', 63, struct ppp_idle) 99#define PPPIOCNEWUNIT _IOWR('t', 62, int) 100#define PPPIOCATTACH _IOW('t', 61, int) 101#define PPPIOCDETACH _IOW('t', 60, int) 102#define PPPIOCSMRRU _IOW('t', 59, int) 103#define PPPIOCCONNECT _IOW('t', 58, int) 104#define PPPIOCDISCONN _IO('t', 57) 105#define PPPIOCATTCHAN _IOW('t', 56, int) 106#define PPPIOCGCHAN _IOR('t', 55, int) 107 108#define SIOCGPPPSTATS (SIOCDEVPRIVATE + 0) 109#define SIOCGPPPVER (SIOCDEVPRIVATE + 1) 110#define SIOCGPPPCSTATS (SIOCDEVPRIVATE + 2) 111 112#ifndef ifr_mtu 113#define ifr_mtu ifr_ifru.ifru_metric 114#endif 115 116#endif 117