Go to the documentation of this file.
16 #ifndef _UAPI__LINUX_IF_PPPOX_H
17 #define _UAPI__LINUX_IF_PPPOX_H
20 #include <linux/types.h>
21 #include <asm/byteorder.h>
23 #include <linux/socket.h>
24 #include <linux/if_ether.h>
25 #include <linux/if_pppol2tp.h>
32 #define PF_PPPOX AF_PPPOX
57 #define PX_PROTO_OL2TP 1
58 #define PX_PROTO_PPTP 2
59 #define PX_MAX_PROTO 3
108 #define PPPOEIOCSFWD _IOW(0xB1 ,0, size_t)
109 #define PPPOEIOCDFWD _IO(0xB1 ,1)
113 #define PADI_CODE 0x09
114 #define PADO_CODE 0x07
115 #define PADR_CODE 0x19
116 #define PADS_CODE 0x65
117 #define PADT_CODE 0xa7
125 #define PTT_EOL __cpu_to_be16(0x0000)
126 #define PTT_SRV_NAME __cpu_to_be16(0x0101)
127 #define PTT_AC_NAME __cpu_to_be16(0x0102)
128 #define PTT_HOST_UNIQ __cpu_to_be16(0x0103)
129 #define PTT_AC_COOKIE __cpu_to_be16(0x0104)
130 #define PTT_VENDOR __cpu_to_be16(0x0105)
131 #define PTT_RELAY_SID __cpu_to_be16(0x0110)
132 #define PTT_SRV_ERR __cpu_to_be16(0x0201)
133 #define PTT_SYS_ERR __cpu_to_be16(0x0202)
134 #define PTT_GEN_ERR __cpu_to_be16(0x0203)
137 #if defined(__LITTLE_ENDIAN_BITFIELD)
140 #elif defined(__BIG_ENDIAN_BITFIELD)
144 #error "Please fix <asm/byteorder.h>"
153 #define PPPOE_SES_HLEN 8