122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI__LINUX_IF_PPPOL2TP_H
2022851890Sopenharmony_ci#define _UAPI__LINUX_IF_PPPOL2TP_H
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#include <linux/in.h>
2322851890Sopenharmony_ci#include <linux/in6.h>
2422851890Sopenharmony_ci#include <linux/l2tp.h>
2522851890Sopenharmony_cistruct pppol2tp_addr {
2622851890Sopenharmony_ci  __kernel_pid_t pid;
2722851890Sopenharmony_ci  int fd;
2822851890Sopenharmony_ci  struct sockaddr_in addr;
2922851890Sopenharmony_ci  __u16 s_tunnel, s_session;
3022851890Sopenharmony_ci  __u16 d_tunnel, d_session;
3122851890Sopenharmony_ci};
3222851890Sopenharmony_cistruct pppol2tpin6_addr {
3322851890Sopenharmony_ci  __kernel_pid_t pid;
3422851890Sopenharmony_ci  int fd;
3522851890Sopenharmony_ci  __u16 s_tunnel, s_session;
3622851890Sopenharmony_ci  __u16 d_tunnel, d_session;
3722851890Sopenharmony_ci  struct sockaddr_in6 addr;
3822851890Sopenharmony_ci};
3922851890Sopenharmony_cistruct pppol2tpv3_addr {
4022851890Sopenharmony_ci  __kernel_pid_t pid;
4122851890Sopenharmony_ci  int fd;
4222851890Sopenharmony_ci  struct sockaddr_in addr;
4322851890Sopenharmony_ci  __u32 s_tunnel, s_session;
4422851890Sopenharmony_ci  __u32 d_tunnel, d_session;
4522851890Sopenharmony_ci};
4622851890Sopenharmony_cistruct pppol2tpv3in6_addr {
4722851890Sopenharmony_ci  __kernel_pid_t pid;
4822851890Sopenharmony_ci  int fd;
4922851890Sopenharmony_ci  __u32 s_tunnel, s_session;
5022851890Sopenharmony_ci  __u32 d_tunnel, d_session;
5122851890Sopenharmony_ci  struct sockaddr_in6 addr;
5222851890Sopenharmony_ci};
5322851890Sopenharmony_cienum {
5422851890Sopenharmony_ci  PPPOL2TP_SO_DEBUG = 1,
5522851890Sopenharmony_ci  PPPOL2TP_SO_RECVSEQ = 2,
5622851890Sopenharmony_ci  PPPOL2TP_SO_SENDSEQ = 3,
5722851890Sopenharmony_ci  PPPOL2TP_SO_LNSMODE = 4,
5822851890Sopenharmony_ci  PPPOL2TP_SO_REORDERTO = 5,
5922851890Sopenharmony_ci};
6022851890Sopenharmony_cienum {
6122851890Sopenharmony_ci  PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG,
6222851890Sopenharmony_ci  PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL,
6322851890Sopenharmony_ci  PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ,
6422851890Sopenharmony_ci  PPPOL2TP_MSG_DATA = L2TP_MSG_DATA,
6522851890Sopenharmony_ci};
6622851890Sopenharmony_ci#endif
67