blob: 3ecaf12ae017ffad63c7dddfc3a1e0010e5402dc [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_IF_PPPOX_H
20#define _UAPI__LINUX_IF_PPPOX_H
21#include <linux/types.h>
22#include <asm/byteorder.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/socket.h>
25#include <linux/if_ether.h>
26#include <linux/if_pppol2tp.h>
Elliott Hughes8cb52b02013-11-21 13:43:23 -080027#include <linux/if_pppolac.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -080029#include <linux/if_pppopns.h>
30#ifndef AF_PPPOX
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define AF_PPPOX 24
32#define PF_PPPOX AF_PPPOX
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#endif
35typedef __be16 sid_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070036struct pppoe_addr {
37 sid_t sid;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039 unsigned char remote[ETH_ALEN];
40 char dev[IFNAMSIZ];
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42struct pptp_addr {
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044 __be16 call_id;
45 struct in_addr sin_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define PX_PROTO_OE 0
Elliott Hughes8cb52b02013-11-21 13:43:23 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define PX_PROTO_OL2TP 1
50#define PX_PROTO_PPTP 2
Elliott Hughes8cb52b02013-11-21 13:43:23 -080051#define PX_PROTO_OLAC 3
52#define PX_PROTO_OPNS 4
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -080054#define PX_MAX_PROTO 5
Ben Cheng655a7c02013-10-16 16:09:24 -070055struct sockaddr_pppox {
56 __kernel_sa_family_t sa_family;
57 unsigned int sa_protocol;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 union {
60 struct pppoe_addr pppoe;
61 struct pptp_addr pptp;
62 } sa_addr;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64} __packed;
65struct sockaddr_pppol2tp {
66 __kernel_sa_family_t sa_family;
67 unsigned int sa_protocol;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 struct pppol2tp_addr pppol2tp;
70} __packed;
71struct sockaddr_pppol2tpin6 {
72 __kernel_sa_family_t sa_family;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned int sa_protocol;
75 struct pppol2tpin6_addr pppol2tp;
76} __packed;
77struct sockaddr_pppol2tpv3 {
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __kernel_sa_family_t sa_family;
80 unsigned int sa_protocol;
81 struct pppol2tpv3_addr pppol2tp;
82} __packed;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84struct sockaddr_pppol2tpv3in6 {
85 __kernel_sa_family_t sa_family;
86 unsigned int sa_protocol;
87 struct pppol2tpv3in6_addr pppol2tp;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89} __packed;
90#define PPPOEIOCSFWD _IOW(0xB1 ,0, size_t)
91#define PPPOEIOCDFWD _IO(0xB1 ,1)
92#define PADI_CODE 0x09
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define PADO_CODE 0x07
95#define PADR_CODE 0x19
96#define PADS_CODE 0x65
97#define PADT_CODE 0xa7
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct pppoe_tag {
100 __be16 tag_type;
101 __be16 tag_len;
102 char tag_data[0];
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104} __attribute__ ((packed));
105#define PTT_EOL __cpu_to_be16(0x0000)
106#define PTT_SRV_NAME __cpu_to_be16(0x0101)
107#define PTT_AC_NAME __cpu_to_be16(0x0102)
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define PTT_HOST_UNIQ __cpu_to_be16(0x0103)
110#define PTT_AC_COOKIE __cpu_to_be16(0x0104)
111#define PTT_VENDOR __cpu_to_be16(0x0105)
112#define PTT_RELAY_SID __cpu_to_be16(0x0110)
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define PTT_SRV_ERR __cpu_to_be16(0x0201)
115#define PTT_SYS_ERR __cpu_to_be16(0x0202)
116#define PTT_GEN_ERR __cpu_to_be16(0x0203)
117struct pppoe_hdr {
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#ifdef __LITTLE_ENDIAN_BITFIELD
Ben Cheng655a7c02013-10-16 16:09:24 -0700120 __u8 ver : 4;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800121 __u8 type : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -0700122#elif defined(__BIG_ENDIAN_BITFIELD)
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124 __u8 type : 4;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800125 __u8 ver : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -0700126#else
127#error "Please fix <asm/byteorder.h>"
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#endif
130 __u8 code;
131 __be16 sid;
132 __be16 length;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 struct pppoe_tag tag[0];
135} __packed;
136#define PPPOE_SES_HLEN 8
137#endif
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */