blob: 0bc4dd3e7efb58332a1abc65cfafac2d77314238 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_L2TP_H_
20#define _UAPI_LINUX_L2TP_H_
21#include <linux/types.h>
22#include <linux/socket.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <netinet/in.h>
25#define IPPROTO_L2TP 115
26#define __SOCK_SIZE__ 16
27struct sockaddr_l2tpip {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __kernel_sa_family_t l2tp_family;
30 __be16 l2tp_unused;
31 struct in_addr l2tp_addr;
32 __u32 l2tp_conn_id;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned char __pad[sizeof(struct sockaddr) -
35 sizeof(__kernel_sa_family_t) -
36 sizeof(__be16) - sizeof(struct in_addr) -
37 sizeof(__u32)];
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39};
40struct sockaddr_l2tpip6 {
41 __kernel_sa_family_t l2tp_family;
42 __be16 l2tp_unused;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __be32 l2tp_flowinfo;
45 struct in6_addr l2tp_addr;
46 __u32 l2tp_scope_id;
47 __u32 l2tp_conn_id;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50enum {
51 L2TP_CMD_NOOP,
52 L2TP_CMD_TUNNEL_CREATE,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 L2TP_CMD_TUNNEL_DELETE,
55 L2TP_CMD_TUNNEL_MODIFY,
56 L2TP_CMD_TUNNEL_GET,
57 L2TP_CMD_SESSION_CREATE,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 L2TP_CMD_SESSION_DELETE,
60 L2TP_CMD_SESSION_MODIFY,
61 L2TP_CMD_SESSION_GET,
62 __L2TP_CMD_MAX,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65#define L2TP_CMD_MAX (__L2TP_CMD_MAX - 1)
66enum {
67 L2TP_ATTR_NONE,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 L2TP_ATTR_PW_TYPE,
70 L2TP_ATTR_ENCAP_TYPE,
71 L2TP_ATTR_OFFSET,
72 L2TP_ATTR_DATA_SEQ,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 L2TP_ATTR_L2SPEC_TYPE,
75 L2TP_ATTR_L2SPEC_LEN,
76 L2TP_ATTR_PROTO_VERSION,
77 L2TP_ATTR_IFNAME,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 L2TP_ATTR_CONN_ID,
80 L2TP_ATTR_PEER_CONN_ID,
81 L2TP_ATTR_SESSION_ID,
82 L2TP_ATTR_PEER_SESSION_ID,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 L2TP_ATTR_UDP_CSUM,
85 L2TP_ATTR_VLAN_ID,
86 L2TP_ATTR_COOKIE,
87 L2TP_ATTR_PEER_COOKIE,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 L2TP_ATTR_DEBUG,
90 L2TP_ATTR_RECV_SEQ,
91 L2TP_ATTR_SEND_SEQ,
92 L2TP_ATTR_LNS_MODE,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 L2TP_ATTR_USING_IPSEC,
95 L2TP_ATTR_RECV_TIMEOUT,
96 L2TP_ATTR_FD,
97 L2TP_ATTR_IP_SADDR,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 L2TP_ATTR_IP_DADDR,
100 L2TP_ATTR_UDP_SPORT,
101 L2TP_ATTR_UDP_DPORT,
102 L2TP_ATTR_MTU,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 L2TP_ATTR_MRU,
105 L2TP_ATTR_STATS,
106 L2TP_ATTR_IP6_SADDR,
107 L2TP_ATTR_IP6_DADDR,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700109 L2TP_ATTR_UDP_ZERO_CSUM6_TX,
110 L2TP_ATTR_UDP_ZERO_CSUM6_RX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700111 __L2TP_ATTR_MAX,
112};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114#define L2TP_ATTR_MAX (__L2TP_ATTR_MAX - 1)
115enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700116 L2TP_ATTR_STATS_NONE,
117 L2TP_ATTR_TX_PACKETS,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119 L2TP_ATTR_TX_BYTES,
120 L2TP_ATTR_TX_ERRORS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700121 L2TP_ATTR_RX_PACKETS,
122 L2TP_ATTR_RX_BYTES,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124 L2TP_ATTR_RX_SEQ_DISCARDS,
125 L2TP_ATTR_RX_OOS_PACKETS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700126 L2TP_ATTR_RX_ERRORS,
127 __L2TP_ATTR_STATS_MAX,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129};
130#define L2TP_ATTR_STATS_MAX (__L2TP_ATTR_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700131enum l2tp_pwtype {
132 L2TP_PWTYPE_NONE = 0x0000,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134 L2TP_PWTYPE_ETH_VLAN = 0x0004,
135 L2TP_PWTYPE_ETH = 0x0005,
Ben Cheng655a7c02013-10-16 16:09:24 -0700136 L2TP_PWTYPE_PPP = 0x0007,
137 L2TP_PWTYPE_PPP_AC = 0x0008,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139 L2TP_PWTYPE_IP = 0x000b,
140 __L2TP_PWTYPE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142enum l2tp_l2spec_type {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144 L2TP_L2SPECTYPE_NONE,
145 L2TP_L2SPECTYPE_DEFAULT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700146};
147enum l2tp_encap_type {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149 L2TP_ENCAPTYPE_UDP,
150 L2TP_ENCAPTYPE_IP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700151};
152enum l2tp_seqmode {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154 L2TP_SEQ_NONE = 0,
155 L2TP_SEQ_IP = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700156 L2TP_SEQ_ALL = 2,
157};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define L2TP_GENL_NAME "l2tp"
160#define L2TP_GENL_VERSION 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700161#endif