blob: f2f6a973fe7520f5117fa4c508d88e46088abbda [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI__LINUX_IF_PPPOL2TP_H
8#define _UAPI__LINUX_IF_PPPOL2TP_H
9#include <linux/types.h>
Christopher Ferris49f525c2016-12-12 14:55:36 -080010#include <linux/in.h>
Christopher Ferris49f525c2016-12-12 14:55:36 -080011#include <linux/in6.h>
Christopher Ferris48af7cb2017-02-21 12:35:09 -080012#include <linux/l2tp.h>
Christopher Ferris49f525c2016-12-12 14:55:36 -080013struct pppol2tp_addr {
Tao Baod7db5942015-01-28 10:07:51 -080014 __kernel_pid_t pid;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080015 int fd;
Tao Baod7db5942015-01-28 10:07:51 -080016 struct sockaddr_in addr;
17 __u16 s_tunnel, s_session;
Tao Baod7db5942015-01-28 10:07:51 -080018 __u16 d_tunnel, d_session;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080019};
Ben Cheng655a7c02013-10-16 16:09:24 -070020struct pppol2tpin6_addr {
Tao Baod7db5942015-01-28 10:07:51 -080021 __kernel_pid_t pid;
Tao Baod7db5942015-01-28 10:07:51 -080022 int fd;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080023 __u16 s_tunnel, s_session;
Tao Baod7db5942015-01-28 10:07:51 -080024 __u16 d_tunnel, d_session;
25 struct sockaddr_in6 addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070026};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080027struct pppol2tpv3_addr {
Tao Baod7db5942015-01-28 10:07:51 -080028 __kernel_pid_t pid;
29 int fd;
Tao Baod7db5942015-01-28 10:07:51 -080030 struct sockaddr_in addr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080031 __u32 s_tunnel, s_session;
Tao Baod7db5942015-01-28 10:07:51 -080032 __u32 d_tunnel, d_session;
Ben Cheng655a7c02013-10-16 16:09:24 -070033};
Ben Cheng655a7c02013-10-16 16:09:24 -070034struct pppol2tpv3in6_addr {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080035 __kernel_pid_t pid;
Tao Baod7db5942015-01-28 10:07:51 -080036 int fd;
37 __u32 s_tunnel, s_session;
Tao Baod7db5942015-01-28 10:07:51 -080038 __u32 d_tunnel, d_session;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039 struct sockaddr_in6 addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41enum {
Tao Baod7db5942015-01-28 10:07:51 -080042 PPPOL2TP_SO_DEBUG = 1,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080043 PPPOL2TP_SO_RECVSEQ = 2,
Tao Baod7db5942015-01-28 10:07:51 -080044 PPPOL2TP_SO_SENDSEQ = 3,
45 PPPOL2TP_SO_LNSMODE = 4,
Tao Baod7db5942015-01-28 10:07:51 -080046 PPPOL2TP_SO_REORDERTO = 5,
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48enum {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080049 PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG,
50 PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080051 PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ,
52 PPPOL2TP_MSG_DATA = L2TP_MSG_DATA,
Ben Cheng655a7c02013-10-16 16:09:24 -070053};
Ben Cheng655a7c02013-10-16 16:09:24 -070054#endif