123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef __LINUX_IF_PPPOL2TP_H
- #define __LINUX_IF_PPPOL2TP_H
- #include <linux/types.h>
- #include <linux/in.h>
- #include <linux/in6.h>
- struct pppol2tp_addr {
- __kernel_pid_t pid;
- int fd;
- struct sockaddr_in addr;
- __u16 s_tunnel, s_session;
- __u16 d_tunnel, d_session;
- };
- struct pppol2tpin6_addr {
- __kernel_pid_t pid;
- int fd;
- __u16 s_tunnel, s_session;
- __u16 d_tunnel, d_session;
- struct sockaddr_in6 addr;
- };
- struct pppol2tpv3_addr {
- __kernel_pid_t pid;
- int fd;
- struct sockaddr_in addr;
- __u32 s_tunnel, s_session;
- __u32 d_tunnel, d_session;
- };
- struct pppol2tpv3in6_addr {
- __kernel_pid_t pid;
- int fd;
- __u32 s_tunnel, s_session;
- __u32 d_tunnel, d_session;
- struct sockaddr_in6 addr;
- };
- enum {
- PPPOL2TP_SO_DEBUG = 1,
- PPPOL2TP_SO_RECVSEQ = 2,
- PPPOL2TP_SO_SENDSEQ = 3,
- PPPOL2TP_SO_LNSMODE = 4,
- PPPOL2TP_SO_REORDERTO = 5,
- };
- enum {
- PPPOL2TP_MSG_DEBUG = (1 << 0),
- PPPOL2TP_MSG_CONTROL = (1 << 1),
- PPPOL2TP_MSG_SEQ = (1 << 2),
- PPPOL2TP_MSG_DATA = (1 << 3),
- };
- #endif
|