blob: b7f4120d1bdf6077ad68917fc078d73fa025c1ee [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_LINK_H
20#define _UAPI_LINUX_IF_LINK_H
21#include <linux/types.h>
22#include <linux/netlink.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct rtnl_link_stats {
25 __u32 rx_packets;
26 __u32 tx_packets;
27 __u32 rx_bytes;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u32 tx_bytes;
30 __u32 rx_errors;
31 __u32 tx_errors;
32 __u32 rx_dropped;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u32 tx_dropped;
35 __u32 multicast;
36 __u32 collisions;
37 __u32 rx_length_errors;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 __u32 rx_over_errors;
40 __u32 rx_crc_errors;
41 __u32 rx_frame_errors;
42 __u32 rx_fifo_errors;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 rx_missed_errors;
45 __u32 tx_aborted_errors;
46 __u32 tx_carrier_errors;
47 __u32 tx_fifo_errors;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u32 tx_heartbeat_errors;
50 __u32 tx_window_errors;
51 __u32 rx_compressed;
52 __u32 tx_compressed;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct rtnl_link_stats64 {
56 __u64 rx_packets;
57 __u64 tx_packets;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __u64 rx_bytes;
60 __u64 tx_bytes;
61 __u64 rx_errors;
62 __u64 tx_errors;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u64 rx_dropped;
65 __u64 tx_dropped;
66 __u64 multicast;
67 __u64 collisions;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u64 rx_length_errors;
70 __u64 rx_over_errors;
71 __u64 rx_crc_errors;
72 __u64 rx_frame_errors;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 __u64 rx_fifo_errors;
75 __u64 rx_missed_errors;
76 __u64 tx_aborted_errors;
77 __u64 tx_carrier_errors;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u64 tx_fifo_errors;
80 __u64 tx_heartbeat_errors;
81 __u64 tx_window_errors;
82 __u64 rx_compressed;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 __u64 tx_compressed;
85};
86struct rtnl_link_ifmap {
87 __u64 mem_start;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 __u64 mem_end;
90 __u64 base_addr;
91 __u16 irq;
92 __u8 dma;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 __u8 port;
95};
96enum {
97 IFLA_UNSPEC,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 IFLA_ADDRESS,
100 IFLA_BROADCAST,
101 IFLA_IFNAME,
102 IFLA_MTU,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 IFLA_LINK,
105 IFLA_QDISC,
106 IFLA_STATS,
107 IFLA_COST,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define IFLA_COST IFLA_COST
110 IFLA_PRIORITY,
111#define IFLA_PRIORITY IFLA_PRIORITY
112 IFLA_MASTER,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define IFLA_MASTER IFLA_MASTER
115 IFLA_WIRELESS,
116#define IFLA_WIRELESS IFLA_WIRELESS
117 IFLA_PROTINFO,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define IFLA_PROTINFO IFLA_PROTINFO
120 IFLA_TXQLEN,
121#define IFLA_TXQLEN IFLA_TXQLEN
122 IFLA_MAP,
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define IFLA_MAP IFLA_MAP
125 IFLA_WEIGHT,
126#define IFLA_WEIGHT IFLA_WEIGHT
127 IFLA_OPERSTATE,
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 IFLA_LINKMODE,
130 IFLA_LINKINFO,
131#define IFLA_LINKINFO IFLA_LINKINFO
132 IFLA_NET_NS_PID,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 IFLA_IFALIAS,
135 IFLA_NUM_VF,
136 IFLA_VFINFO_LIST,
137 IFLA_STATS64,
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 IFLA_VF_PORTS,
140 IFLA_PORT_SELF,
141 IFLA_AF_SPEC,
142 IFLA_GROUP,
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 IFLA_NET_NS_FD,
145 IFLA_EXT_MASK,
146 IFLA_PROMISCUITY,
147#define IFLA_PROMISCUITY IFLA_PROMISCUITY
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 IFLA_NUM_TX_QUEUES,
150 IFLA_NUM_RX_QUEUES,
151 IFLA_CARRIER,
152 __IFLA_MAX
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154};
155#define IFLA_MAX (__IFLA_MAX - 1)
156#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
157#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159enum {
160 IFLA_INET_UNSPEC,
161 IFLA_INET_CONF,
162 __IFLA_INET_MAX,
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164};
165#define IFLA_INET_MAX (__IFLA_INET_MAX - 1)
166enum {
167 IFLA_INET6_UNSPEC,
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 IFLA_INET6_FLAGS,
170 IFLA_INET6_CONF,
171 IFLA_INET6_STATS,
172 IFLA_INET6_MCAST,
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 IFLA_INET6_CACHEINFO,
175 IFLA_INET6_ICMP6STATS,
176 IFLA_INET6_TOKEN,
177 __IFLA_INET6_MAX
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179};
180#define IFLA_INET6_MAX (__IFLA_INET6_MAX - 1)
181enum {
182 BRIDGE_MODE_UNSPEC,
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 BRIDGE_MODE_HAIRPIN,
185};
186enum {
187 IFLA_BRPORT_UNSPEC,
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 IFLA_BRPORT_STATE,
190 IFLA_BRPORT_PRIORITY,
191 IFLA_BRPORT_COST,
192 IFLA_BRPORT_MODE,
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 IFLA_BRPORT_GUARD,
195 IFLA_BRPORT_PROTECT,
196 IFLA_BRPORT_FAST_LEAVE,
197 IFLA_BRPORT_LEARNING,
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 IFLA_BRPORT_UNICAST_FLOOD,
200 __IFLA_BRPORT_MAX
201};
202#define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204struct ifla_cacheinfo {
205 __u32 max_reasm_len;
206 __u32 tstamp;
207 __u32 reachable_time;
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 __u32 retrans_time;
210};
211enum {
212 IFLA_INFO_UNSPEC,
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 IFLA_INFO_KIND,
215 IFLA_INFO_DATA,
216 IFLA_INFO_XSTATS,
217 __IFLA_INFO_MAX,
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219};
220#define IFLA_INFO_MAX (__IFLA_INFO_MAX - 1)
221enum {
222 IFLA_VLAN_UNSPEC,
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224 IFLA_VLAN_ID,
225 IFLA_VLAN_FLAGS,
226 IFLA_VLAN_EGRESS_QOS,
227 IFLA_VLAN_INGRESS_QOS,
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 IFLA_VLAN_PROTOCOL,
230 __IFLA_VLAN_MAX,
231};
232#define IFLA_VLAN_MAX (__IFLA_VLAN_MAX - 1)
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234struct ifla_vlan_flags {
235 __u32 flags;
236 __u32 mask;
237};
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239enum {
240 IFLA_VLAN_QOS_UNSPEC,
241 IFLA_VLAN_QOS_MAPPING,
242 __IFLA_VLAN_QOS_MAX
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244};
245#define IFLA_VLAN_QOS_MAX (__IFLA_VLAN_QOS_MAX - 1)
246struct ifla_vlan_qos_mapping {
247 __u32 from;
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249 __u32 to;
250};
251enum {
252 IFLA_MACVLAN_UNSPEC,
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 IFLA_MACVLAN_MODE,
255 IFLA_MACVLAN_FLAGS,
256 __IFLA_MACVLAN_MAX,
257};
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259#define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
260enum macvlan_mode {
261 MACVLAN_MODE_PRIVATE = 1,
262 MACVLAN_MODE_VEPA = 2,
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 MACVLAN_MODE_BRIDGE = 4,
265 MACVLAN_MODE_PASSTHRU = 8,
266};
267#define MACVLAN_FLAG_NOPROMISC 1
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269enum {
270 IFLA_VXLAN_UNSPEC,
271 IFLA_VXLAN_ID,
272 IFLA_VXLAN_GROUP,
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274 IFLA_VXLAN_LINK,
275 IFLA_VXLAN_LOCAL,
276 IFLA_VXLAN_TTL,
277 IFLA_VXLAN_TOS,
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 IFLA_VXLAN_LEARNING,
280 IFLA_VXLAN_AGEING,
281 IFLA_VXLAN_LIMIT,
282 IFLA_VXLAN_PORT_RANGE,
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 IFLA_VXLAN_PROXY,
285 IFLA_VXLAN_RSC,
286 IFLA_VXLAN_L2MISS,
287 IFLA_VXLAN_L3MISS,
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 IFLA_VXLAN_PORT,
290 __IFLA_VXLAN_MAX
291};
292#define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1)
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294struct ifla_vxlan_port_range {
295 __be16 low;
296 __be16 high;
297};
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299enum {
300 IFLA_VF_INFO_UNSPEC,
301 IFLA_VF_INFO,
302 __IFLA_VF_INFO_MAX,
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304};
305#define IFLA_VF_INFO_MAX (__IFLA_VF_INFO_MAX - 1)
306enum {
307 IFLA_VF_UNSPEC,
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 IFLA_VF_MAC,
310 IFLA_VF_VLAN,
311 IFLA_VF_TX_RATE,
312 IFLA_VF_SPOOFCHK,
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314 IFLA_VF_LINK_STATE,
315 __IFLA_VF_MAX,
316};
317#define IFLA_VF_MAX (__IFLA_VF_MAX - 1)
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319struct ifla_vf_mac {
320 __u32 vf;
321 __u8 mac[32];
322};
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324struct ifla_vf_vlan {
325 __u32 vf;
326 __u32 vlan;
327 __u32 qos;
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329};
330struct ifla_vf_tx_rate {
331 __u32 vf;
332 __u32 rate;
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334};
335struct ifla_vf_spoofchk {
336 __u32 vf;
337 __u32 setting;
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339};
340enum {
341 IFLA_VF_LINK_STATE_AUTO,
342 IFLA_VF_LINK_STATE_ENABLE,
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 IFLA_VF_LINK_STATE_DISABLE,
345 __IFLA_VF_LINK_STATE_MAX,
346};
347struct ifla_vf_link_state {
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349 __u32 vf;
350 __u32 link_state;
351};
352enum {
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 IFLA_VF_PORT_UNSPEC,
355 IFLA_VF_PORT,
356 __IFLA_VF_PORT_MAX,
357};
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359#define IFLA_VF_PORT_MAX (__IFLA_VF_PORT_MAX - 1)
360enum {
361 IFLA_PORT_UNSPEC,
362 IFLA_PORT_VF,
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364 IFLA_PORT_PROFILE,
365 IFLA_PORT_VSI_TYPE,
366 IFLA_PORT_INSTANCE_UUID,
367 IFLA_PORT_HOST_UUID,
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369 IFLA_PORT_REQUEST,
370 IFLA_PORT_RESPONSE,
371 __IFLA_PORT_MAX,
372};
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374#define IFLA_PORT_MAX (__IFLA_PORT_MAX - 1)
375#define PORT_PROFILE_MAX 40
376#define PORT_UUID_MAX 16
377#define PORT_SELF_VF -1
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379enum {
380 PORT_REQUEST_PREASSOCIATE = 0,
381 PORT_REQUEST_PREASSOCIATE_RR,
382 PORT_REQUEST_ASSOCIATE,
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 PORT_REQUEST_DISASSOCIATE,
385};
386enum {
387 PORT_VDP_RESPONSE_SUCCESS = 0,
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389 PORT_VDP_RESPONSE_INVALID_FORMAT,
390 PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES,
391 PORT_VDP_RESPONSE_UNUSED_VTID,
392 PORT_VDP_RESPONSE_VTID_VIOLATION,
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394 PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION,
395 PORT_VDP_RESPONSE_OUT_OF_SYNC,
396 PORT_PROFILE_RESPONSE_SUCCESS = 0x100,
397 PORT_PROFILE_RESPONSE_INPROGRESS,
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 PORT_PROFILE_RESPONSE_INVALID,
400 PORT_PROFILE_RESPONSE_BADSTATE,
401 PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES,
402 PORT_PROFILE_RESPONSE_ERROR,
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404};
405struct ifla_port_vsi {
406 __u8 vsi_mgr_id;
407 __u8 vsi_type_id[3];
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 __u8 vsi_type_version;
410 __u8 pad[3];
411};
412enum {
413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414 IFLA_IPOIB_UNSPEC,
415 IFLA_IPOIB_PKEY,
416 IFLA_IPOIB_MODE,
417 IFLA_IPOIB_UMCAST,
418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419 __IFLA_IPOIB_MAX
420};
421enum {
422 IPOIB_MODE_DATAGRAM = 0,
423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424 IPOIB_MODE_CONNECTED = 1,
425};
426#define IFLA_IPOIB_MAX (__IFLA_IPOIB_MAX - 1)
427#endif
428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */