blob: 81b709b701d7c505bfd99a56893edded096e6e0f [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_RTNETLINK_H
20#define _UAPI__LINUX_RTNETLINK_H
21#include <linux/types.h>
22#include <linux/netlink.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/if_link.h>
25#include <linux/if_addr.h>
26#include <linux/neighbour.h>
27#define RTNL_FAMILY_IPMR 128
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define RTNL_FAMILY_IP6MR 129
30#define RTNL_FAMILY_MAX 129
31enum {
Tao Baod7db5942015-01-28 10:07:51 -080032 RTM_BASE = 16,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define RTM_BASE RTM_BASE
Tao Baod7db5942015-01-28 10:07:51 -080035 RTM_NEWLINK = 16,
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define RTM_NEWLINK RTM_NEWLINK
Tao Baod7db5942015-01-28 10:07:51 -080037 RTM_DELLINK,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define RTM_DELLINK RTM_DELLINK
Tao Baod7db5942015-01-28 10:07:51 -080040 RTM_GETLINK,
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define RTM_GETLINK RTM_GETLINK
Tao Baod7db5942015-01-28 10:07:51 -080042 RTM_SETLINK,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define RTM_SETLINK RTM_SETLINK
Tao Baod7db5942015-01-28 10:07:51 -080045 RTM_NEWADDR = 20,
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define RTM_NEWADDR RTM_NEWADDR
Tao Baod7db5942015-01-28 10:07:51 -080047 RTM_DELADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define RTM_DELADDR RTM_DELADDR
Tao Baod7db5942015-01-28 10:07:51 -080050 RTM_GETADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define RTM_GETADDR RTM_GETADDR
Tao Baod7db5942015-01-28 10:07:51 -080052 RTM_NEWROUTE = 24,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define RTM_NEWROUTE RTM_NEWROUTE
Tao Baod7db5942015-01-28 10:07:51 -080055 RTM_DELROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define RTM_DELROUTE RTM_DELROUTE
Tao Baod7db5942015-01-28 10:07:51 -080057 RTM_GETROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define RTM_GETROUTE RTM_GETROUTE
Tao Baod7db5942015-01-28 10:07:51 -080060 RTM_NEWNEIGH = 28,
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define RTM_NEWNEIGH RTM_NEWNEIGH
Tao Baod7db5942015-01-28 10:07:51 -080062 RTM_DELNEIGH,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define RTM_DELNEIGH RTM_DELNEIGH
Tao Baod7db5942015-01-28 10:07:51 -080065 RTM_GETNEIGH,
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define RTM_GETNEIGH RTM_GETNEIGH
Tao Baod7db5942015-01-28 10:07:51 -080067 RTM_NEWRULE = 32,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define RTM_NEWRULE RTM_NEWRULE
Tao Baod7db5942015-01-28 10:07:51 -080070 RTM_DELRULE,
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define RTM_DELRULE RTM_DELRULE
Tao Baod7db5942015-01-28 10:07:51 -080072 RTM_GETRULE,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define RTM_GETRULE RTM_GETRULE
Tao Baod7db5942015-01-28 10:07:51 -080075 RTM_NEWQDISC = 36,
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define RTM_NEWQDISC RTM_NEWQDISC
Tao Baod7db5942015-01-28 10:07:51 -080077 RTM_DELQDISC,
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define RTM_DELQDISC RTM_DELQDISC
Tao Baod7db5942015-01-28 10:07:51 -080080 RTM_GETQDISC,
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define RTM_GETQDISC RTM_GETQDISC
Tao Baod7db5942015-01-28 10:07:51 -080082 RTM_NEWTCLASS = 40,
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define RTM_NEWTCLASS RTM_NEWTCLASS
Tao Baod7db5942015-01-28 10:07:51 -080085 RTM_DELTCLASS,
Ben Cheng655a7c02013-10-16 16:09:24 -070086#define RTM_DELTCLASS RTM_DELTCLASS
Tao Baod7db5942015-01-28 10:07:51 -080087 RTM_GETTCLASS,
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define RTM_GETTCLASS RTM_GETTCLASS
Tao Baod7db5942015-01-28 10:07:51 -080090 RTM_NEWTFILTER = 44,
Ben Cheng655a7c02013-10-16 16:09:24 -070091#define RTM_NEWTFILTER RTM_NEWTFILTER
Tao Baod7db5942015-01-28 10:07:51 -080092 RTM_DELTFILTER,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define RTM_DELTFILTER RTM_DELTFILTER
Tao Baod7db5942015-01-28 10:07:51 -080095 RTM_GETTFILTER,
Ben Cheng655a7c02013-10-16 16:09:24 -070096#define RTM_GETTFILTER RTM_GETTFILTER
Tao Baod7db5942015-01-28 10:07:51 -080097 RTM_NEWACTION = 48,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define RTM_NEWACTION RTM_NEWACTION
Tao Baod7db5942015-01-28 10:07:51 -0800100 RTM_DELACTION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700101#define RTM_DELACTION RTM_DELACTION
Tao Baod7db5942015-01-28 10:07:51 -0800102 RTM_GETACTION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define RTM_GETACTION RTM_GETACTION
Tao Baod7db5942015-01-28 10:07:51 -0800105 RTM_NEWPREFIX = 52,
Ben Cheng655a7c02013-10-16 16:09:24 -0700106#define RTM_NEWPREFIX RTM_NEWPREFIX
Tao Baod7db5942015-01-28 10:07:51 -0800107 RTM_GETMULTICAST = 58,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define RTM_GETMULTICAST RTM_GETMULTICAST
Tao Baod7db5942015-01-28 10:07:51 -0800110 RTM_GETANYCAST = 62,
Ben Cheng655a7c02013-10-16 16:09:24 -0700111#define RTM_GETANYCAST RTM_GETANYCAST
Tao Baod7db5942015-01-28 10:07:51 -0800112 RTM_NEWNEIGHTBL = 64,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define RTM_NEWNEIGHTBL RTM_NEWNEIGHTBL
Tao Baod7db5942015-01-28 10:07:51 -0800115 RTM_GETNEIGHTBL = 66,
Ben Cheng655a7c02013-10-16 16:09:24 -0700116#define RTM_GETNEIGHTBL RTM_GETNEIGHTBL
Tao Baod7db5942015-01-28 10:07:51 -0800117 RTM_SETNEIGHTBL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define RTM_SETNEIGHTBL RTM_SETNEIGHTBL
Tao Baod7db5942015-01-28 10:07:51 -0800120 RTM_NEWNDUSEROPT = 68,
Ben Cheng655a7c02013-10-16 16:09:24 -0700121#define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT
Tao Baod7db5942015-01-28 10:07:51 -0800122 RTM_NEWADDRLABEL = 72,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define RTM_NEWADDRLABEL RTM_NEWADDRLABEL
Tao Baod7db5942015-01-28 10:07:51 -0800125 RTM_DELADDRLABEL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700126#define RTM_DELADDRLABEL RTM_DELADDRLABEL
Tao Baod7db5942015-01-28 10:07:51 -0800127 RTM_GETADDRLABEL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define RTM_GETADDRLABEL RTM_GETADDRLABEL
Tao Baod7db5942015-01-28 10:07:51 -0800130 RTM_GETDCB = 78,
Ben Cheng655a7c02013-10-16 16:09:24 -0700131#define RTM_GETDCB RTM_GETDCB
Tao Baod7db5942015-01-28 10:07:51 -0800132 RTM_SETDCB,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define RTM_SETDCB RTM_SETDCB
Tao Baod7db5942015-01-28 10:07:51 -0800135 RTM_NEWNETCONF = 80,
Ben Cheng655a7c02013-10-16 16:09:24 -0700136#define RTM_NEWNETCONF RTM_NEWNETCONF
Tao Baod7db5942015-01-28 10:07:51 -0800137 RTM_GETNETCONF = 82,
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define RTM_GETNETCONF RTM_GETNETCONF
Tao Baod7db5942015-01-28 10:07:51 -0800140 RTM_NEWMDB = 84,
Ben Cheng655a7c02013-10-16 16:09:24 -0700141#define RTM_NEWMDB RTM_NEWMDB
Tao Baod7db5942015-01-28 10:07:51 -0800142 RTM_DELMDB = 85,
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define RTM_DELMDB RTM_DELMDB
Tao Baod7db5942015-01-28 10:07:51 -0800145 RTM_GETMDB = 86,
Ben Cheng655a7c02013-10-16 16:09:24 -0700146#define RTM_GETMDB RTM_GETMDB
Christopher Ferris05d08e92016-02-04 13:16:38 -0800147 RTM_NEWNSID = 88,
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800149#define RTM_NEWNSID RTM_NEWNSID
150 RTM_DELNSID = 89,
151#define RTM_DELNSID RTM_DELNSID
152 RTM_GETNSID = 90,
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#define RTM_GETNSID RTM_GETNSID
155 __RTM_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700156#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
157};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE)
160#define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700161#define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2)
162struct rtattr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 unsigned short rta_len;
165 unsigned short rta_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700166};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800167#define RTA_ALIGNTO 4U
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169#define RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1))
170#define RTA_OK(rta,len) ((len) >= (int) sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
Tao Baod7db5942015-01-28 10:07:51 -0800171#define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr *) (((char *) (rta)) + RTA_ALIGN((rta)->rta_len)))
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
Christopher Ferris05d08e92016-02-04 13:16:38 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
Tao Baod7db5942015-01-28 10:07:51 -0800175#define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0)))
Tao Baod7db5942015-01-28 10:07:51 -0800176#define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0))
Ben Cheng655a7c02013-10-16 16:09:24 -0700177struct rtmsg {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 unsigned char rtm_family;
180 unsigned char rtm_dst_len;
Tao Baod7db5942015-01-28 10:07:51 -0800181 unsigned char rtm_src_len;
182 unsigned char rtm_tos;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 unsigned char rtm_table;
185 unsigned char rtm_protocol;
Tao Baod7db5942015-01-28 10:07:51 -0800186 unsigned char rtm_scope;
187 unsigned char rtm_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 unsigned rtm_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700190};
Ben Cheng655a7c02013-10-16 16:09:24 -0700191enum {
Tao Baod7db5942015-01-28 10:07:51 -0800192 RTN_UNSPEC,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 RTN_UNICAST,
195 RTN_LOCAL,
Tao Baod7db5942015-01-28 10:07:51 -0800196 RTN_BROADCAST,
197 RTN_ANYCAST,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 RTN_MULTICAST,
200 RTN_BLACKHOLE,
Tao Baod7db5942015-01-28 10:07:51 -0800201 RTN_UNREACHABLE,
202 RTN_PROHIBIT,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 RTN_THROW,
205 RTN_NAT,
Tao Baod7db5942015-01-28 10:07:51 -0800206 RTN_XRESOLVE,
207 __RTN_MAX
Christopher Ferris05d08e92016-02-04 13:16:38 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700209};
210#define RTN_MAX (__RTN_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700211#define RTPROT_UNSPEC 0
212#define RTPROT_REDIRECT 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214#define RTPROT_KERNEL 2
215#define RTPROT_BOOT 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700216#define RTPROT_STATIC 4
217#define RTPROT_GATED 8
Christopher Ferris05d08e92016-02-04 13:16:38 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219#define RTPROT_RA 9
220#define RTPROT_MRT 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700221#define RTPROT_ZEBRA 11
222#define RTPROT_BIRD 12
Christopher Ferris05d08e92016-02-04 13:16:38 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224#define RTPROT_DNROUTED 13
225#define RTPROT_XORP 14
Ben Cheng655a7c02013-10-16 16:09:24 -0700226#define RTPROT_NTK 15
227#define RTPROT_DHCP 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800229#define RTPROT_MROUTED 17
230#define RTPROT_BABEL 42
231enum rt_scope_t {
Tao Baod7db5942015-01-28 10:07:51 -0800232 RT_SCOPE_UNIVERSE = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 RT_SCOPE_SITE = 200,
235 RT_SCOPE_LINK = 253,
236 RT_SCOPE_HOST = 254,
Tao Baod7db5942015-01-28 10:07:51 -0800237 RT_SCOPE_NOWHERE = 255
Christopher Ferris05d08e92016-02-04 13:16:38 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239};
240#define RTM_F_NOTIFY 0x100
241#define RTM_F_CLONED 0x200
Ben Cheng655a7c02013-10-16 16:09:24 -0700242#define RTM_F_EQUALIZE 0x400
Christopher Ferris05d08e92016-02-04 13:16:38 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244#define RTM_F_PREFIX 0x800
Christopher Ferris05d08e92016-02-04 13:16:38 -0800245#define RTM_F_LOOKUP_TABLE 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -0700246enum rt_class_t {
Tao Baod7db5942015-01-28 10:07:51 -0800247 RT_TABLE_UNSPEC = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 RT_TABLE_COMPAT = 252,
250 RT_TABLE_DEFAULT = 253,
251 RT_TABLE_MAIN = 254,
252 RT_TABLE_LOCAL = 255,
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 RT_TABLE_MAX = 0xFFFFFFFF
Ben Cheng655a7c02013-10-16 16:09:24 -0700255};
256enum rtattr_type_t {
Tao Baod7db5942015-01-28 10:07:51 -0800257 RTA_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 RTA_DST,
260 RTA_SRC,
261 RTA_IIF,
262 RTA_OIF,
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 RTA_GATEWAY,
265 RTA_PRIORITY,
266 RTA_PREFSRC,
267 RTA_METRICS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 RTA_MULTIPATH,
270 RTA_PROTOINFO,
271 RTA_FLOW,
272 RTA_CACHEINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 RTA_SESSION,
275 RTA_MP_ALGO,
276 RTA_TABLE,
277 RTA_MARK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 RTA_MFC_STATS,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800280 RTA_VIA,
281 RTA_NEWDST,
282 RTA_PREF,
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 RTA_ENCAP_TYPE,
285 RTA_ENCAP,
Tao Baod7db5942015-01-28 10:07:51 -0800286 __RTA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700287};
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800289#define RTA_MAX (__RTA_MAX - 1)
Tao Baod7db5942015-01-28 10:07:51 -0800290#define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
291#define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct rtmsg))
Ben Cheng655a7c02013-10-16 16:09:24 -0700292struct rtnexthop {
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800294 unsigned short rtnh_len;
Tao Baod7db5942015-01-28 10:07:51 -0800295 unsigned char rtnh_flags;
296 unsigned char rtnh_hops;
297 int rtnh_ifindex;
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800299};
Ben Cheng655a7c02013-10-16 16:09:24 -0700300#define RTNH_F_DEAD 1
301#define RTNH_F_PERVASIVE 2
302#define RTNH_F_ONLINK 4
Christopher Ferris05d08e92016-02-04 13:16:38 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304#define RTNH_F_OFFLOAD 8
305#define RTNH_F_LINKDOWN 16
306#define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN)
Ben Cheng655a7c02013-10-16 16:09:24 -0700307#define RTNH_ALIGNTO 4
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309#define RTNH_ALIGN(len) (((len) + RTNH_ALIGNTO - 1) & ~(RTNH_ALIGNTO - 1))
310#define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int) (rtnh)->rtnh_len) <= (len))
311#define RTNH_NEXT(rtnh) ((struct rtnexthop *) (((char *) (rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
Ben Cheng655a7c02013-10-16 16:09:24 -0700312#define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314#define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
Tao Baod7db5942015-01-28 10:07:51 -0800315#define RTNH_DATA(rtnh) ((struct rtattr *) (((char *) (rtnh)) + RTNH_LENGTH(0)))
Christopher Ferris05d08e92016-02-04 13:16:38 -0800316struct rtvia {
317 __kernel_sa_family_t rtvia_family;
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 __u8 rtvia_addr[0];
320};
Ben Cheng655a7c02013-10-16 16:09:24 -0700321struct rta_cacheinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800322 __u32 rta_clntref;
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 __u32 rta_lastuse;
325 __s32 rta_expires;
326 __u32 rta_error;
327 __u32 rta_used;
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329#define RTNETLINK_HAVE_PEERINFO 1
Tao Baod7db5942015-01-28 10:07:51 -0800330 __u32 rta_id;
331 __u32 rta_ts;
332 __u32 rta_tsage;
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334};
335enum {
Tao Baod7db5942015-01-28 10:07:51 -0800336 RTAX_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700337#define RTAX_UNSPEC RTAX_UNSPEC
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 RTAX_LOCK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700340#define RTAX_LOCK RTAX_LOCK
Tao Baod7db5942015-01-28 10:07:51 -0800341 RTAX_MTU,
Ben Cheng655a7c02013-10-16 16:09:24 -0700342#define RTAX_MTU RTAX_MTU
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 RTAX_WINDOW,
Ben Cheng655a7c02013-10-16 16:09:24 -0700345#define RTAX_WINDOW RTAX_WINDOW
Tao Baod7db5942015-01-28 10:07:51 -0800346 RTAX_RTT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700347#define RTAX_RTT RTAX_RTT
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 RTAX_RTTVAR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700350#define RTAX_RTTVAR RTAX_RTTVAR
Tao Baod7db5942015-01-28 10:07:51 -0800351 RTAX_SSTHRESH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700352#define RTAX_SSTHRESH RTAX_SSTHRESH
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 RTAX_CWND,
Ben Cheng655a7c02013-10-16 16:09:24 -0700355#define RTAX_CWND RTAX_CWND
Tao Baod7db5942015-01-28 10:07:51 -0800356 RTAX_ADVMSS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700357#define RTAX_ADVMSS RTAX_ADVMSS
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 RTAX_REORDERING,
Ben Cheng655a7c02013-10-16 16:09:24 -0700360#define RTAX_REORDERING RTAX_REORDERING
Tao Baod7db5942015-01-28 10:07:51 -0800361 RTAX_HOPLIMIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700362#define RTAX_HOPLIMIT RTAX_HOPLIMIT
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 RTAX_INITCWND,
Ben Cheng655a7c02013-10-16 16:09:24 -0700365#define RTAX_INITCWND RTAX_INITCWND
Tao Baod7db5942015-01-28 10:07:51 -0800366 RTAX_FEATURES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700367#define RTAX_FEATURES RTAX_FEATURES
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 RTAX_RTO_MIN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700370#define RTAX_RTO_MIN RTAX_RTO_MIN
Tao Baod7db5942015-01-28 10:07:51 -0800371 RTAX_INITRWND,
Ben Cheng655a7c02013-10-16 16:09:24 -0700372#define RTAX_INITRWND RTAX_INITRWND
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 RTAX_QUICKACK,
Christopher Ferris38062f92014-07-09 15:33:25 -0700375#define RTAX_QUICKACK RTAX_QUICKACK
Christopher Ferris05d08e92016-02-04 13:16:38 -0800376 RTAX_CC_ALGO,
377#define RTAX_CC_ALGO RTAX_CC_ALGO
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 __RTAX_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700380};
Ben Cheng655a7c02013-10-16 16:09:24 -0700381#define RTAX_MAX (__RTAX_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800382#define RTAX_FEATURE_ECN (1 << 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800384#define RTAX_FEATURE_SACK (1 << 1)
385#define RTAX_FEATURE_TIMESTAMP (1 << 2)
386#define RTAX_FEATURE_ALLFRAG (1 << 3)
387#define RTAX_FEATURE_MASK (RTAX_FEATURE_ECN | RTAX_FEATURE_SACK | RTAX_FEATURE_TIMESTAMP | RTAX_FEATURE_ALLFRAG)
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389struct rta_session {
Tao Baod7db5942015-01-28 10:07:51 -0800390 __u8 proto;
391 __u8 pad1;
Tao Baod7db5942015-01-28 10:07:51 -0800392 __u16 pad2;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 union {
395 struct {
396 __u16 sport;
Tao Baod7db5942015-01-28 10:07:51 -0800397 __u16 dport;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 } ports;
400 struct {
401 __u8 type;
Tao Baod7db5942015-01-28 10:07:51 -0800402 __u8 code;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u16 ident;
405 } icmpt;
406 __u32 spi;
Tao Baod7db5942015-01-28 10:07:51 -0800407 } u;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409};
410struct rta_mfc_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800411 __u64 mfcs_packets;
Tao Baod7db5942015-01-28 10:07:51 -0800412 __u64 mfcs_bytes;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 __u64 mfcs_wrong_if;
Ben Cheng655a7c02013-10-16 16:09:24 -0700415};
416struct rtgenmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800417 unsigned char rtgen_family;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419};
420struct ifinfomsg {
Tao Baod7db5942015-01-28 10:07:51 -0800421 unsigned char ifi_family;
Tao Baod7db5942015-01-28 10:07:51 -0800422 unsigned char __ifi_pad;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 unsigned short ifi_type;
425 int ifi_index;
426 unsigned ifi_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800427 unsigned ifi_change;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429};
430struct prefixmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800431 unsigned char prefix_family;
Tao Baod7db5942015-01-28 10:07:51 -0800432 unsigned char prefix_pad1;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 unsigned short prefix_pad2;
435 int prefix_ifindex;
436 unsigned char prefix_type;
Tao Baod7db5942015-01-28 10:07:51 -0800437 unsigned char prefix_len;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 unsigned char prefix_flags;
440 unsigned char prefix_pad3;
Ben Cheng655a7c02013-10-16 16:09:24 -0700441};
Tao Baod7db5942015-01-28 10:07:51 -0800442enum {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 PREFIX_UNSPEC,
445 PREFIX_ADDRESS,
446 PREFIX_CACHEINFO,
Tao Baod7db5942015-01-28 10:07:51 -0800447 __PREFIX_MAX
Christopher Ferris05d08e92016-02-04 13:16:38 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449};
450#define PREFIX_MAX (__PREFIX_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700451struct prefix_cacheinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800452 __u32 preferred_time;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800454 __u32 valid_time;
455};
Ben Cheng655a7c02013-10-16 16:09:24 -0700456struct tcmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800457 unsigned char tcm_family;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 unsigned char tcm__pad1;
460 unsigned short tcm__pad2;
461 int tcm_ifindex;
Tao Baod7db5942015-01-28 10:07:51 -0800462 __u32 tcm_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800464 __u32 tcm_parent;
465 __u32 tcm_info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700466};
467enum {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800469 TCA_UNSPEC,
470 TCA_KIND,
471 TCA_OPTIONS,
Tao Baod7db5942015-01-28 10:07:51 -0800472 TCA_STATS,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 TCA_XSTATS,
475 TCA_RATE,
476 TCA_FCNT,
Tao Baod7db5942015-01-28 10:07:51 -0800477 TCA_STATS2,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800479 TCA_STAB,
480 __TCA_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700481};
482#define TCA_MAX (__TCA_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800484#define TCA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
485#define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct tcmsg))
Ben Cheng655a7c02013-10-16 16:09:24 -0700486struct nduseroptmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800487 unsigned char nduseropt_family;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800489 unsigned char nduseropt_pad1;
490 unsigned short nduseropt_opts_len;
491 int nduseropt_ifindex;
Tao Baod7db5942015-01-28 10:07:51 -0800492 __u8 nduseropt_icmp_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 __u8 nduseropt_icmp_code;
495 unsigned short nduseropt_pad2;
496 unsigned int nduseropt_pad3;
Ben Cheng655a7c02013-10-16 16:09:24 -0700497};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700499enum {
Tao Baod7db5942015-01-28 10:07:51 -0800500 NDUSEROPT_UNSPEC,
501 NDUSEROPT_SRCADDR,
Tao Baod7db5942015-01-28 10:07:51 -0800502 __NDUSEROPT_MAX
Christopher Ferris05d08e92016-02-04 13:16:38 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700504};
505#define NDUSEROPT_MAX (__NDUSEROPT_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700506#define RTMGRP_LINK 1
507#define RTMGRP_NOTIFY 2
Christopher Ferris05d08e92016-02-04 13:16:38 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700509#define RTMGRP_NEIGH 4
510#define RTMGRP_TC 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700511#define RTMGRP_IPV4_IFADDR 0x10
512#define RTMGRP_IPV4_MROUTE 0x20
Christopher Ferris05d08e92016-02-04 13:16:38 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514#define RTMGRP_IPV4_ROUTE 0x40
515#define RTMGRP_IPV4_RULE 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -0700516#define RTMGRP_IPV6_IFADDR 0x100
517#define RTMGRP_IPV6_MROUTE 0x200
Christopher Ferris05d08e92016-02-04 13:16:38 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519#define RTMGRP_IPV6_ROUTE 0x400
520#define RTMGRP_IPV6_IFINFO 0x800
Ben Cheng655a7c02013-10-16 16:09:24 -0700521#define RTMGRP_DECnet_IFADDR 0x1000
522#define RTMGRP_DECnet_ROUTE 0x4000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700524#define RTMGRP_IPV6_PREFIX 0x20000
525enum rtnetlink_groups {
Tao Baod7db5942015-01-28 10:07:51 -0800526 RTNLGRP_NONE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700527#define RTNLGRP_NONE RTNLGRP_NONE
Christopher Ferris05d08e92016-02-04 13:16:38 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800529 RTNLGRP_LINK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define RTNLGRP_LINK RTNLGRP_LINK
Tao Baod7db5942015-01-28 10:07:51 -0800531 RTNLGRP_NOTIFY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700532#define RTNLGRP_NOTIFY RTNLGRP_NOTIFY
Christopher Ferris05d08e92016-02-04 13:16:38 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800534 RTNLGRP_NEIGH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700535#define RTNLGRP_NEIGH RTNLGRP_NEIGH
Tao Baod7db5942015-01-28 10:07:51 -0800536 RTNLGRP_TC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700537#define RTNLGRP_TC RTNLGRP_TC
Christopher Ferris05d08e92016-02-04 13:16:38 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800539 RTNLGRP_IPV4_IFADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700540#define RTNLGRP_IPV4_IFADDR RTNLGRP_IPV4_IFADDR
Tao Baod7db5942015-01-28 10:07:51 -0800541 RTNLGRP_IPV4_MROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700542#define RTNLGRP_IPV4_MROUTE RTNLGRP_IPV4_MROUTE
Christopher Ferris05d08e92016-02-04 13:16:38 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800544 RTNLGRP_IPV4_ROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700545#define RTNLGRP_IPV4_ROUTE RTNLGRP_IPV4_ROUTE
Tao Baod7db5942015-01-28 10:07:51 -0800546 RTNLGRP_IPV4_RULE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700547#define RTNLGRP_IPV4_RULE RTNLGRP_IPV4_RULE
Christopher Ferris05d08e92016-02-04 13:16:38 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800549 RTNLGRP_IPV6_IFADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700550#define RTNLGRP_IPV6_IFADDR RTNLGRP_IPV6_IFADDR
Tao Baod7db5942015-01-28 10:07:51 -0800551 RTNLGRP_IPV6_MROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700552#define RTNLGRP_IPV6_MROUTE RTNLGRP_IPV6_MROUTE
Christopher Ferris05d08e92016-02-04 13:16:38 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800554 RTNLGRP_IPV6_ROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700555#define RTNLGRP_IPV6_ROUTE RTNLGRP_IPV6_ROUTE
Tao Baod7db5942015-01-28 10:07:51 -0800556 RTNLGRP_IPV6_IFINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700557#define RTNLGRP_IPV6_IFINFO RTNLGRP_IPV6_IFINFO
Christopher Ferris05d08e92016-02-04 13:16:38 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800559 RTNLGRP_DECnet_IFADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define RTNLGRP_DECnet_IFADDR RTNLGRP_DECnet_IFADDR
Tao Baod7db5942015-01-28 10:07:51 -0800561 RTNLGRP_NOP2,
Tao Baod7db5942015-01-28 10:07:51 -0800562 RTNLGRP_DECnet_ROUTE,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564#define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE
Tao Baod7db5942015-01-28 10:07:51 -0800565 RTNLGRP_DECnet_RULE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700566#define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE
Tao Baod7db5942015-01-28 10:07:51 -0800567 RTNLGRP_NOP4,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800569 RTNLGRP_IPV6_PREFIX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700570#define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX
Tao Baod7db5942015-01-28 10:07:51 -0800571 RTNLGRP_IPV6_RULE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700572#define RTNLGRP_IPV6_RULE RTNLGRP_IPV6_RULE
Christopher Ferris05d08e92016-02-04 13:16:38 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800574 RTNLGRP_ND_USEROPT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700575#define RTNLGRP_ND_USEROPT RTNLGRP_ND_USEROPT
Tao Baod7db5942015-01-28 10:07:51 -0800576 RTNLGRP_PHONET_IFADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700577#define RTNLGRP_PHONET_IFADDR RTNLGRP_PHONET_IFADDR
Christopher Ferris05d08e92016-02-04 13:16:38 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800579 RTNLGRP_PHONET_ROUTE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700580#define RTNLGRP_PHONET_ROUTE RTNLGRP_PHONET_ROUTE
Tao Baod7db5942015-01-28 10:07:51 -0800581 RTNLGRP_DCB,
Ben Cheng655a7c02013-10-16 16:09:24 -0700582#define RTNLGRP_DCB RTNLGRP_DCB
Christopher Ferris05d08e92016-02-04 13:16:38 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800584 RTNLGRP_IPV4_NETCONF,
Ben Cheng655a7c02013-10-16 16:09:24 -0700585#define RTNLGRP_IPV4_NETCONF RTNLGRP_IPV4_NETCONF
Tao Baod7db5942015-01-28 10:07:51 -0800586 RTNLGRP_IPV6_NETCONF,
Ben Cheng655a7c02013-10-16 16:09:24 -0700587#define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF
Christopher Ferris05d08e92016-02-04 13:16:38 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800589 RTNLGRP_MDB,
Ben Cheng655a7c02013-10-16 16:09:24 -0700590#define RTNLGRP_MDB RTNLGRP_MDB
Christopher Ferris05d08e92016-02-04 13:16:38 -0800591 RTNLGRP_MPLS_ROUTE,
592#define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE
Christopher Ferris38062f92014-07-09 15:33:25 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800594 RTNLGRP_NSID,
595#define RTNLGRP_NSID RTNLGRP_NSID
596 __RTNLGRP_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700597};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599#define RTNLGRP_MAX (__RTNLGRP_MAX - 1)
600struct tcamsg {
Tao Baod7db5942015-01-28 10:07:51 -0800601 unsigned char tca_family;
Tao Baod7db5942015-01-28 10:07:51 -0800602 unsigned char tca__pad1;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800604 unsigned short tca__pad2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700605};
Tao Baod7db5942015-01-28 10:07:51 -0800606#define TA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
Tao Baod7db5942015-01-28 10:07:51 -0800607#define TA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct tcamsg))
Christopher Ferris05d08e92016-02-04 13:16:38 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700609#define TCA_ACT_TAB 1
610#define TCAA_MAX 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700611#define RTEXT_FILTER_VF (1 << 0)
612#define RTEXT_FILTER_BRVLAN (1 << 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
614#define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2)
615#define RTEXT_FILTER_SKIP_STATS (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700616#endif