blob: 4eca84df728d8f4a756760134a3fdcf4f596bf81 [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 _LINUX_IF_H
20#define _LINUX_IF_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 <linux/compiler.h>
25#define IFNAMSIZ 16
26#define IFALIASZ 256
27#include <linux/hdlc/ioctl.h>
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define IFF_UP 0x1
30#define IFF_BROADCAST 0x2
31#define IFF_DEBUG 0x4
32#define IFF_LOOPBACK 0x8
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define IFF_POINTOPOINT 0x10
35#define IFF_NOTRAILERS 0x20
36#define IFF_RUNNING 0x40
37#define IFF_NOARP 0x80
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define IFF_PROMISC 0x100
40#define IFF_ALLMULTI 0x200
41#define IFF_MASTER 0x400
42#define IFF_SLAVE 0x800
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define IFF_MULTICAST 0x1000
45#define IFF_PORTSEL 0x2000
46#define IFF_AUTOMEDIA 0x4000
47#define IFF_DYNAMIC 0x8000
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define IFF_LOWER_UP 0x10000
50#define IFF_DORMANT 0x20000
51#define IFF_ECHO 0x40000
52#define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST|IFF_ECHO| IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define IFF_802_1Q_VLAN 0x1
55#define IFF_EBRIDGE 0x2
56#define IFF_SLAVE_INACTIVE 0x4
57#define IFF_MASTER_8023AD 0x8
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define IFF_MASTER_ALB 0x10
60#define IFF_BONDING 0x20
61#define IFF_SLAVE_NEEDARP 0x40
62#define IFF_ISATAP 0x80
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define IFF_MASTER_ARPMON 0x100
65#define IFF_WAN_HDLC 0x200
66#define IFF_XMIT_DST_RELEASE 0x400
67#define IFF_DONT_BRIDGE 0x800
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define IFF_DISABLE_NETPOLL 0x1000
70#define IFF_MACVLAN_PORT 0x2000
71#define IFF_BRIDGE_PORT 0x4000
72#define IFF_OVS_DATAPATH 0x8000
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define IFF_TX_SKB_SHARING 0x10000
75#define IFF_UNICAST_FLT 0x20000
76#define IFF_TEAM_PORT 0x40000
77#define IFF_SUPP_NOFCS 0x80000
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define IFF_LIVE_ADDR_CHANGE 0x100000
Christopher Ferris38062f92014-07-09 15:33:25 -070080#define IFF_MACVLAN 0x200000
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define IF_GET_IFACE 0x0001
82#define IF_GET_PROTO 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084#define IF_IFACE_V35 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define IF_IFACE_V24 0x1001
86#define IF_IFACE_X21 0x1002
87#define IF_IFACE_T1 0x1003
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define IF_IFACE_E1 0x1004
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define IF_IFACE_SYNC_SERIAL 0x1005
91#define IF_IFACE_X21D 0x1006
92#define IF_PROTO_HDLC 0x2000
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define IF_PROTO_PPP 0x2001
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define IF_PROTO_CISCO 0x2002
96#define IF_PROTO_FR 0x2003
97#define IF_PROTO_FR_ADD_PVC 0x2004
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099#define IF_PROTO_FR_DEL_PVC 0x2005
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define IF_PROTO_X25 0x2006
101#define IF_PROTO_HDLC_ETH 0x2007
102#define IF_PROTO_FR_ADD_ETH_PVC 0x2008
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define IF_PROTO_FR_DEL_ETH_PVC 0x2009
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define IF_PROTO_FR_PVC 0x200A
106#define IF_PROTO_FR_ETH_PVC 0x200B
107#define IF_PROTO_RAW 0x200C
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700110 IF_OPER_UNKNOWN,
111 IF_OPER_NOTPRESENT,
112 IF_OPER_DOWN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114 IF_OPER_LOWERLAYERDOWN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700115 IF_OPER_TESTING,
116 IF_OPER_DORMANT,
117 IF_OPER_UP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119};
Ben Cheng655a7c02013-10-16 16:09:24 -0700120enum {
121 IF_LINK_MODE_DEFAULT,
122 IF_LINK_MODE_DORMANT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700124};
Ben Cheng655a7c02013-10-16 16:09:24 -0700125struct ifmap {
126 unsigned long mem_start;
127 unsigned long mem_end;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700129 unsigned short base_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130 unsigned char irq;
131 unsigned char dma;
132 unsigned char port;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700134};
Ben Cheng655a7c02013-10-16 16:09:24 -0700135struct if_settings {
136 unsigned int type;
137 unsigned int size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700140 raw_hdlc_proto __user *raw_hdlc;
141 cisco_proto __user *cisco;
142 fr_proto __user *fr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144 fr_proto_pvc __user *fr_pvc;
Ben Cheng655a7c02013-10-16 16:09:24 -0700145 fr_proto_pvc_info __user *fr_pvc_info;
146 sync_serial_settings __user *sync;
147 te1_settings __user *te1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700149 } ifs_ifsu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700150};
151struct ifreq {
152#define IFHWADDRLEN 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154 union
Ben Cheng655a7c02013-10-16 16:09:24 -0700155 {
156 char ifrn_name[IFNAMSIZ];
157 } ifr_ifrn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700159 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700160 struct sockaddr ifru_addr;
161 struct sockaddr ifru_dstaddr;
162 struct sockaddr ifru_broadaddr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164 struct sockaddr ifru_netmask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700165 struct sockaddr ifru_hwaddr;
166 short ifru_flags;
167 int ifru_ivalue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700169 int ifru_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700170 struct ifmap ifru_map;
171 char ifru_slave[IFNAMSIZ];
172 char ifru_newname[IFNAMSIZ];
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700174 void __user * ifru_data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700175 struct if_settings ifru_settings;
176 } ifr_ifru;
177};
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179#define ifr_name ifr_ifrn.ifrn_name
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define ifr_hwaddr ifr_ifru.ifru_hwaddr
181#define ifr_addr ifr_ifru.ifru_addr
182#define ifr_dstaddr ifr_ifru.ifru_dstaddr
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700184#define ifr_broadaddr ifr_ifru.ifru_broadaddr
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define ifr_netmask ifr_ifru.ifru_netmask
186#define ifr_flags ifr_ifru.ifru_flags
187#define ifr_metric ifr_ifru.ifru_ivalue
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189#define ifr_mtu ifr_ifru.ifru_mtu
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define ifr_map ifr_ifru.ifru_map
191#define ifr_slave ifr_ifru.ifru_slave
192#define ifr_data ifr_ifru.ifru_data
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194#define ifr_ifindex ifr_ifru.ifru_ivalue
Ben Cheng655a7c02013-10-16 16:09:24 -0700195#define ifr_bandwidth ifr_ifru.ifru_ivalue
196#define ifr_qlen ifr_ifru.ifru_ivalue
197#define ifr_newname ifr_ifru.ifru_newname
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199#define ifr_settings ifr_ifru.ifru_settings
Ben Cheng655a7c02013-10-16 16:09:24 -0700200struct ifconf {
201 int ifc_len;
202 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700204 char __user *ifcu_buf;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205 struct ifreq __user *ifcu_req;
206 } ifc_ifcu;
207};
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700209#define ifc_buf ifc_ifcu.ifcu_buf
Ben Cheng655a7c02013-10-16 16:09:24 -0700210#define ifc_req ifc_ifcu.ifcu_req
211#endif