Home | History | Annotate | Download | only in linux
      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  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _UAPI__LINUX_IF_PPPOL2TP_H
     20 #define _UAPI__LINUX_IF_PPPOL2TP_H
     21 #include <linux/types.h>
     22 #include <linux/in.h>
     23 #include <linux/in6.h>
     24 #include <linux/l2tp.h>
     25 struct pppol2tp_addr {
     26   __kernel_pid_t pid;
     27   int fd;
     28   struct sockaddr_in addr;
     29   __u16 s_tunnel, s_session;
     30   __u16 d_tunnel, d_session;
     31 };
     32 struct pppol2tpin6_addr {
     33   __kernel_pid_t pid;
     34   int fd;
     35   __u16 s_tunnel, s_session;
     36   __u16 d_tunnel, d_session;
     37   struct sockaddr_in6 addr;
     38 };
     39 struct pppol2tpv3_addr {
     40   __kernel_pid_t pid;
     41   int fd;
     42   struct sockaddr_in addr;
     43   __u32 s_tunnel, s_session;
     44   __u32 d_tunnel, d_session;
     45 };
     46 struct pppol2tpv3in6_addr {
     47   __kernel_pid_t pid;
     48   int fd;
     49   __u32 s_tunnel, s_session;
     50   __u32 d_tunnel, d_session;
     51   struct sockaddr_in6 addr;
     52 };
     53 enum {
     54   PPPOL2TP_SO_DEBUG = 1,
     55   PPPOL2TP_SO_RECVSEQ = 2,
     56   PPPOL2TP_SO_SENDSEQ = 3,
     57   PPPOL2TP_SO_LNSMODE = 4,
     58   PPPOL2TP_SO_REORDERTO = 5,
     59 };
     60 enum {
     61   PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG,
     62   PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL,
     63   PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ,
     64   PPPOL2TP_MSG_DATA = L2TP_MSG_DATA,
     65 };
     66 #endif
     67