1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI__LINUX_IF_PPPOL2TP_H 8 #define _UAPI__LINUX_IF_PPPOL2TP_H 9 #include <linux/types.h> 10 #include <linux/in.h> 11 #include <linux/in6.h> 12 #include <linux/l2tp.h> 13 struct pppol2tp_addr { 14 __kernel_pid_t pid; 15 int fd; 16 struct sockaddr_in addr; 17 __u16 s_tunnel, s_session; 18 __u16 d_tunnel, d_session; 19 }; 20 struct pppol2tpin6_addr { 21 __kernel_pid_t pid; 22 int fd; 23 __u16 s_tunnel, s_session; 24 __u16 d_tunnel, d_session; 25 struct sockaddr_in6 addr; 26 }; 27 struct pppol2tpv3_addr { 28 __kernel_pid_t pid; 29 int fd; 30 struct sockaddr_in addr; 31 __u32 s_tunnel, s_session; 32 __u32 d_tunnel, d_session; 33 }; 34 struct pppol2tpv3in6_addr { 35 __kernel_pid_t pid; 36 int fd; 37 __u32 s_tunnel, s_session; 38 __u32 d_tunnel, d_session; 39 struct sockaddr_in6 addr; 40 }; 41 enum { 42 PPPOL2TP_SO_DEBUG = 1, 43 PPPOL2TP_SO_RECVSEQ = 2, 44 PPPOL2TP_SO_SENDSEQ = 3, 45 PPPOL2TP_SO_LNSMODE = 4, 46 PPPOL2TP_SO_REORDERTO = 5, 47 }; 48 enum { 49 PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG, 50 PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL, 51 PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ, 52 PPPOL2TP_MSG_DATA = L2TP_MSG_DATA, 53 }; 54 #endif 55