Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 2 | #ifndef _UAPI__LINUX_RTNETLINK_H |
| 3 | #define _UAPI__LINUX_RTNETLINK_H |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | #include <linux/netlink.h> |
| 7 | #include <linux/if_link.h> |
| 8 | #include <linux/if_addr.h> |
| 9 | #include <linux/neighbour.h> |
| 10 | |
| 11 | /* rtnetlink families. Values up to 127 are reserved for real address |
| 12 | * families, values above 128 may be used arbitrarily. |
| 13 | */ |
| 14 | #define RTNL_FAMILY_IPMR 128 |
| 15 | #define RTNL_FAMILY_IP6MR 129 |
| 16 | #define RTNL_FAMILY_MAX 129 |
| 17 | |
| 18 | /**** |
| 19 | * Routing/neighbour discovery messages. |
| 20 | ****/ |
| 21 | |
| 22 | /* Types of messages */ |
| 23 | |
| 24 | enum { |
| 25 | RTM_BASE = 16, |
| 26 | #define RTM_BASE RTM_BASE |
| 27 | |
| 28 | RTM_NEWLINK = 16, |
| 29 | #define RTM_NEWLINK RTM_NEWLINK |
| 30 | RTM_DELLINK, |
| 31 | #define RTM_DELLINK RTM_DELLINK |
| 32 | RTM_GETLINK, |
| 33 | #define RTM_GETLINK RTM_GETLINK |
| 34 | RTM_SETLINK, |
| 35 | #define RTM_SETLINK RTM_SETLINK |
| 36 | |
| 37 | RTM_NEWADDR = 20, |
| 38 | #define RTM_NEWADDR RTM_NEWADDR |
| 39 | RTM_DELADDR, |
| 40 | #define RTM_DELADDR RTM_DELADDR |
| 41 | RTM_GETADDR, |
| 42 | #define RTM_GETADDR RTM_GETADDR |
| 43 | |
| 44 | RTM_NEWROUTE = 24, |
| 45 | #define RTM_NEWROUTE RTM_NEWROUTE |
| 46 | RTM_DELROUTE, |
| 47 | #define RTM_DELROUTE RTM_DELROUTE |
| 48 | RTM_GETROUTE, |
| 49 | #define RTM_GETROUTE RTM_GETROUTE |
| 50 | |
| 51 | RTM_NEWNEIGH = 28, |
| 52 | #define RTM_NEWNEIGH RTM_NEWNEIGH |
| 53 | RTM_DELNEIGH, |
| 54 | #define RTM_DELNEIGH RTM_DELNEIGH |
| 55 | RTM_GETNEIGH, |
| 56 | #define RTM_GETNEIGH RTM_GETNEIGH |
| 57 | |
| 58 | RTM_NEWRULE = 32, |
| 59 | #define RTM_NEWRULE RTM_NEWRULE |
| 60 | RTM_DELRULE, |
| 61 | #define RTM_DELRULE RTM_DELRULE |
| 62 | RTM_GETRULE, |
| 63 | #define RTM_GETRULE RTM_GETRULE |
| 64 | |
| 65 | RTM_NEWQDISC = 36, |
| 66 | #define RTM_NEWQDISC RTM_NEWQDISC |
| 67 | RTM_DELQDISC, |
| 68 | #define RTM_DELQDISC RTM_DELQDISC |
| 69 | RTM_GETQDISC, |
| 70 | #define RTM_GETQDISC RTM_GETQDISC |
| 71 | |
| 72 | RTM_NEWTCLASS = 40, |
| 73 | #define RTM_NEWTCLASS RTM_NEWTCLASS |
| 74 | RTM_DELTCLASS, |
| 75 | #define RTM_DELTCLASS RTM_DELTCLASS |
| 76 | RTM_GETTCLASS, |
| 77 | #define RTM_GETTCLASS RTM_GETTCLASS |
| 78 | |
| 79 | RTM_NEWTFILTER = 44, |
| 80 | #define RTM_NEWTFILTER RTM_NEWTFILTER |
| 81 | RTM_DELTFILTER, |
| 82 | #define RTM_DELTFILTER RTM_DELTFILTER |
| 83 | RTM_GETTFILTER, |
| 84 | #define RTM_GETTFILTER RTM_GETTFILTER |
| 85 | |
| 86 | RTM_NEWACTION = 48, |
| 87 | #define RTM_NEWACTION RTM_NEWACTION |
| 88 | RTM_DELACTION, |
| 89 | #define RTM_DELACTION RTM_DELACTION |
| 90 | RTM_GETACTION, |
| 91 | #define RTM_GETACTION RTM_GETACTION |
| 92 | |
| 93 | RTM_NEWPREFIX = 52, |
| 94 | #define RTM_NEWPREFIX RTM_NEWPREFIX |
| 95 | |
| 96 | RTM_GETMULTICAST = 58, |
| 97 | #define RTM_GETMULTICAST RTM_GETMULTICAST |
| 98 | |
| 99 | RTM_GETANYCAST = 62, |
| 100 | #define RTM_GETANYCAST RTM_GETANYCAST |
| 101 | |
| 102 | RTM_NEWNEIGHTBL = 64, |
| 103 | #define RTM_NEWNEIGHTBL RTM_NEWNEIGHTBL |
| 104 | RTM_GETNEIGHTBL = 66, |
| 105 | #define RTM_GETNEIGHTBL RTM_GETNEIGHTBL |
| 106 | RTM_SETNEIGHTBL, |
| 107 | #define RTM_SETNEIGHTBL RTM_SETNEIGHTBL |
| 108 | |
| 109 | RTM_NEWNDUSEROPT = 68, |
| 110 | #define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT |
| 111 | |
| 112 | RTM_NEWADDRLABEL = 72, |
| 113 | #define RTM_NEWADDRLABEL RTM_NEWADDRLABEL |
| 114 | RTM_DELADDRLABEL, |
| 115 | #define RTM_DELADDRLABEL RTM_DELADDRLABEL |
| 116 | RTM_GETADDRLABEL, |
| 117 | #define RTM_GETADDRLABEL RTM_GETADDRLABEL |
| 118 | |
| 119 | RTM_GETDCB = 78, |
| 120 | #define RTM_GETDCB RTM_GETDCB |
| 121 | RTM_SETDCB, |
| 122 | #define RTM_SETDCB RTM_SETDCB |
| 123 | |
Nicolas Dichtel | d900082 | 2012-10-25 22:28:49 +0000 | [diff] [blame] | 124 | RTM_NEWNETCONF = 80, |
| 125 | #define RTM_NEWNETCONF RTM_NEWNETCONF |
David Ahern | 983701e | 2017-03-28 14:28:01 -0700 | [diff] [blame] | 126 | RTM_DELNETCONF, |
| 127 | #define RTM_DELNETCONF RTM_DELNETCONF |
Nicolas Dichtel | d900082 | 2012-10-25 22:28:49 +0000 | [diff] [blame] | 128 | RTM_GETNETCONF = 82, |
| 129 | #define RTM_GETNETCONF RTM_GETNETCONF |
| 130 | |
Cong Wang | 37a393b | 2012-12-11 22:23:07 +0000 | [diff] [blame] | 131 | RTM_NEWMDB = 84, |
| 132 | #define RTM_NEWMDB RTM_NEWMDB |
| 133 | RTM_DELMDB = 85, |
| 134 | #define RTM_DELMDB RTM_DELMDB |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 135 | RTM_GETMDB = 86, |
| 136 | #define RTM_GETMDB RTM_GETMDB |
| 137 | |
Nicolas Dichtel | 0c7aecd | 2015-01-15 15:11:15 +0100 | [diff] [blame] | 138 | RTM_NEWNSID = 88, |
| 139 | #define RTM_NEWNSID RTM_NEWNSID |
Nicolas Dichtel | 9a96345 | 2015-04-07 11:51:53 +0200 | [diff] [blame] | 140 | RTM_DELNSID = 89, |
| 141 | #define RTM_DELNSID RTM_DELNSID |
Nicolas Dichtel | 0c7aecd | 2015-01-15 15:11:15 +0100 | [diff] [blame] | 142 | RTM_GETNSID = 90, |
| 143 | #define RTM_GETNSID RTM_GETNSID |
| 144 | |
Roopa Prabhu | 10c9ead | 2016-04-20 08:43:43 -0700 | [diff] [blame] | 145 | RTM_NEWSTATS = 92, |
| 146 | #define RTM_NEWSTATS RTM_NEWSTATS |
| 147 | RTM_GETSTATS = 94, |
| 148 | #define RTM_GETSTATS RTM_GETSTATS |
| 149 | |
Julien Gomes | 94df30a | 2017-06-20 13:54:15 -0700 | [diff] [blame] | 150 | RTM_NEWCACHEREPORT = 96, |
| 151 | #define RTM_NEWCACHEREPORT RTM_NEWCACHEREPORT |
| 152 | |
Jiri Pirko | 32a4f5e | 2018-07-23 09:23:06 +0200 | [diff] [blame] | 153 | RTM_NEWCHAIN = 100, |
| 154 | #define RTM_NEWCHAIN RTM_NEWCHAIN |
| 155 | RTM_DELCHAIN, |
| 156 | #define RTM_DELCHAIN RTM_DELCHAIN |
| 157 | RTM_GETCHAIN, |
| 158 | #define RTM_GETCHAIN RTM_GETCHAIN |
| 159 | |
David Ahern | 65ee00a | 2019-05-24 14:43:03 -0700 | [diff] [blame] | 160 | RTM_NEWNEXTHOP = 104, |
| 161 | #define RTM_NEWNEXTHOP RTM_NEWNEXTHOP |
| 162 | RTM_DELNEXTHOP, |
| 163 | #define RTM_DELNEXTHOP RTM_DELNEXTHOP |
| 164 | RTM_GETNEXTHOP, |
| 165 | #define RTM_GETNEXTHOP RTM_GETNEXTHOP |
| 166 | |
Jiri Pirko | 36fbf1e | 2019-09-30 11:48:16 +0200 | [diff] [blame] | 167 | RTM_NEWLINKPROP = 108, |
| 168 | #define RTM_NEWLINKPROP RTM_NEWLINKPROP |
| 169 | RTM_DELLINKPROP, |
| 170 | #define RTM_DELLINKPROP RTM_DELLINKPROP |
| 171 | RTM_GETLINKPROP, |
| 172 | #define RTM_GETLINKPROP RTM_GETLINKPROP |
| 173 | |
Nikolay Aleksandrov | 8dcea18 | 2020-01-14 19:56:09 +0200 | [diff] [blame] | 174 | RTM_NEWVLAN = 112, |
| 175 | #define RTM_NEWNVLAN RTM_NEWVLAN |
| 176 | RTM_DELVLAN, |
| 177 | #define RTM_DELVLAN RTM_DELVLAN |
| 178 | RTM_GETVLAN, |
| 179 | #define RTM_GETVLAN RTM_GETVLAN |
| 180 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 181 | __RTM_MAX, |
| 182 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
| 183 | }; |
| 184 | |
| 185 | #define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE) |
| 186 | #define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2) |
| 187 | #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) |
| 188 | |
| 189 | /* |
| 190 | Generic structure for encapsulation of optional route information. |
| 191 | It is reminiscent of sockaddr, but with sa_family replaced |
| 192 | with attribute type. |
| 193 | */ |
| 194 | |
| 195 | struct rtattr { |
| 196 | unsigned short rta_len; |
| 197 | unsigned short rta_type; |
| 198 | }; |
| 199 | |
| 200 | /* Macros to handle rtattributes */ |
| 201 | |
Arad, Ronen | e844463 | 2015-10-09 10:35:47 -0700 | [diff] [blame] | 202 | #define RTA_ALIGNTO 4U |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 203 | #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) |
| 204 | #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ |
| 205 | (rta)->rta_len >= sizeof(struct rtattr) && \ |
| 206 | (rta)->rta_len <= (len)) |
| 207 | #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ |
| 208 | (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) |
| 209 | #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) |
| 210 | #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) |
| 211 | #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) |
| 212 | #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | /****************************************************************************** |
| 218 | * Definitions used in routing table administration. |
| 219 | ****/ |
| 220 | |
| 221 | struct rtmsg { |
| 222 | unsigned char rtm_family; |
| 223 | unsigned char rtm_dst_len; |
| 224 | unsigned char rtm_src_len; |
| 225 | unsigned char rtm_tos; |
| 226 | |
| 227 | unsigned char rtm_table; /* Routing table id */ |
| 228 | unsigned char rtm_protocol; /* Routing protocol; see below */ |
| 229 | unsigned char rtm_scope; /* See below */ |
| 230 | unsigned char rtm_type; /* See below */ |
| 231 | |
| 232 | unsigned rtm_flags; |
| 233 | }; |
| 234 | |
| 235 | /* rtm_type */ |
| 236 | |
| 237 | enum { |
| 238 | RTN_UNSPEC, |
| 239 | RTN_UNICAST, /* Gateway or direct route */ |
| 240 | RTN_LOCAL, /* Accept locally */ |
| 241 | RTN_BROADCAST, /* Accept locally as broadcast, |
| 242 | send as broadcast */ |
| 243 | RTN_ANYCAST, /* Accept locally as broadcast, |
| 244 | but send as unicast */ |
| 245 | RTN_MULTICAST, /* Multicast route */ |
| 246 | RTN_BLACKHOLE, /* Drop */ |
| 247 | RTN_UNREACHABLE, /* Destination is unreachable */ |
| 248 | RTN_PROHIBIT, /* Administratively prohibited */ |
| 249 | RTN_THROW, /* Not in this table */ |
| 250 | RTN_NAT, /* Translate this address */ |
| 251 | RTN_XRESOLVE, /* Use external resolver */ |
| 252 | __RTN_MAX |
| 253 | }; |
| 254 | |
| 255 | #define RTN_MAX (__RTN_MAX - 1) |
| 256 | |
| 257 | |
| 258 | /* rtm_protocol */ |
| 259 | |
| 260 | #define RTPROT_UNSPEC 0 |
| 261 | #define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects; |
| 262 | not used by current IPv4 */ |
| 263 | #define RTPROT_KERNEL 2 /* Route installed by kernel */ |
| 264 | #define RTPROT_BOOT 3 /* Route installed during boot */ |
| 265 | #define RTPROT_STATIC 4 /* Route installed by administrator */ |
| 266 | |
| 267 | /* Values of protocol >= RTPROT_STATIC are not interpreted by kernel; |
| 268 | they are just passed from user and back as is. |
| 269 | It will be used by hypothetical multiple routing daemons. |
| 270 | Note that protocol values should be standardized in order to |
| 271 | avoid conflicts. |
| 272 | */ |
| 273 | |
| 274 | #define RTPROT_GATED 8 /* Apparently, GateD */ |
| 275 | #define RTPROT_RA 9 /* RDISC/ND router advertisements */ |
| 276 | #define RTPROT_MRT 10 /* Merit MRT */ |
| 277 | #define RTPROT_ZEBRA 11 /* Zebra */ |
| 278 | #define RTPROT_BIRD 12 /* BIRD */ |
| 279 | #define RTPROT_DNROUTED 13 /* DECnet routing daemon */ |
| 280 | #define RTPROT_XORP 14 /* XORP */ |
| 281 | #define RTPROT_NTK 15 /* Netsukuku */ |
| 282 | #define RTPROT_DHCP 16 /* DHCP client */ |
Nicolas Dichtel | 9a68ac7 | 2012-12-04 01:13:38 +0000 | [diff] [blame] | 283 | #define RTPROT_MROUTED 17 /* Multicast daemon */ |
Dave Taht | be955b2 | 2014-11-06 08:10:14 -0800 | [diff] [blame] | 284 | #define RTPROT_BABEL 42 /* Babel daemon */ |
Donald Sharp | 35aada9 | 2018-05-30 08:27:32 -0400 | [diff] [blame] | 285 | #define RTPROT_BGP 186 /* BGP Routes */ |
| 286 | #define RTPROT_ISIS 187 /* ISIS Routes */ |
| 287 | #define RTPROT_OSPF 188 /* OSPF Routes */ |
| 288 | #define RTPROT_RIP 189 /* RIP Routes */ |
| 289 | #define RTPROT_EIGRP 192 /* EIGRP Routes */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 290 | |
| 291 | /* rtm_scope |
| 292 | |
| 293 | Really it is not scope, but sort of distance to the destination. |
| 294 | NOWHERE are reserved for not existing destinations, HOST is our |
| 295 | local addresses, LINK are destinations, located on directly attached |
| 296 | link and UNIVERSE is everywhere in the Universe. |
| 297 | |
| 298 | Intermediate values are also possible f.e. interior routes |
| 299 | could be assigned a value between UNIVERSE and LINK. |
| 300 | */ |
| 301 | |
| 302 | enum rt_scope_t { |
| 303 | RT_SCOPE_UNIVERSE=0, |
| 304 | /* User defined values */ |
| 305 | RT_SCOPE_SITE=200, |
| 306 | RT_SCOPE_LINK=253, |
| 307 | RT_SCOPE_HOST=254, |
| 308 | RT_SCOPE_NOWHERE=255 |
| 309 | }; |
| 310 | |
| 311 | /* rtm_flags */ |
| 312 | |
| 313 | #define RTM_F_NOTIFY 0x100 /* Notify user of route change */ |
| 314 | #define RTM_F_CLONED 0x200 /* This route is cloned */ |
| 315 | #define RTM_F_EQUALIZE 0x400 /* Multipath equalizer: NI */ |
| 316 | #define RTM_F_PREFIX 0x800 /* Prefix addresses */ |
David Ahern | c36ba66 | 2015-09-02 13:58:36 -0700 | [diff] [blame] | 317 | #define RTM_F_LOOKUP_TABLE 0x1000 /* set rtm_table to FIB lookup result */ |
Roopa Prabhu | 0be1b30 | 2017-05-25 10:42:38 -0700 | [diff] [blame] | 318 | #define RTM_F_FIB_MATCH 0x2000 /* return full fib lookup match */ |
Ido Schimmel | 90b93f1 | 2020-01-14 13:23:11 +0200 | [diff] [blame] | 319 | #define RTM_F_OFFLOAD 0x4000 /* route is offloaded */ |
| 320 | #define RTM_F_TRAP 0x8000 /* route is trapping packets */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 321 | |
| 322 | /* Reserved table identifiers */ |
| 323 | |
| 324 | enum rt_class_t { |
| 325 | RT_TABLE_UNSPEC=0, |
| 326 | /* User defined values */ |
| 327 | RT_TABLE_COMPAT=252, |
| 328 | RT_TABLE_DEFAULT=253, |
| 329 | RT_TABLE_MAIN=254, |
| 330 | RT_TABLE_LOCAL=255, |
| 331 | RT_TABLE_MAX=0xFFFFFFFF |
| 332 | }; |
| 333 | |
| 334 | |
| 335 | /* Routing message attributes */ |
| 336 | |
| 337 | enum rtattr_type_t { |
| 338 | RTA_UNSPEC, |
| 339 | RTA_DST, |
| 340 | RTA_SRC, |
| 341 | RTA_IIF, |
| 342 | RTA_OIF, |
| 343 | RTA_GATEWAY, |
| 344 | RTA_PRIORITY, |
| 345 | RTA_PREFSRC, |
| 346 | RTA_METRICS, |
| 347 | RTA_MULTIPATH, |
| 348 | RTA_PROTOINFO, /* no longer used */ |
| 349 | RTA_FLOW, |
| 350 | RTA_CACHEINFO, |
| 351 | RTA_SESSION, /* no longer used */ |
| 352 | RTA_MP_ALGO, /* no longer used */ |
| 353 | RTA_TABLE, |
| 354 | RTA_MARK, |
Nicolas Dichtel | adfa85e | 2012-12-04 01:13:37 +0000 | [diff] [blame] | 355 | RTA_MFC_STATS, |
Eric W. Biederman | 03c0566 | 2015-03-03 19:13:56 -0600 | [diff] [blame] | 356 | RTA_VIA, |
| 357 | RTA_NEWDST, |
Lubomir Rintel | c78ba6d | 2015-03-11 15:39:21 +0100 | [diff] [blame] | 358 | RTA_PREF, |
Roopa Prabhu | a0d9a86 | 2015-07-21 10:43:45 +0200 | [diff] [blame] | 359 | RTA_ENCAP_TYPE, |
| 360 | RTA_ENCAP, |
Xin Long | 32bc201 | 2015-12-16 17:50:11 +0800 | [diff] [blame] | 361 | RTA_EXPIRES, |
Nicolas Dichtel | a9a0804 | 2016-04-21 18:58:26 +0200 | [diff] [blame] | 362 | RTA_PAD, |
Lorenzo Colitti | 622ec2c | 2016-11-04 02:23:42 +0900 | [diff] [blame] | 363 | RTA_UID, |
Robert Shearman | 5b441ac | 2017-03-10 20:43:24 +0000 | [diff] [blame] | 364 | RTA_TTL_PROPAGATE, |
Roopa Prabhu | 404eb77 | 2018-05-22 14:03:27 -0700 | [diff] [blame] | 365 | RTA_IP_PROTO, |
| 366 | RTA_SPORT, |
| 367 | RTA_DPORT, |
David Ahern | 65ee00a | 2019-05-24 14:43:03 -0700 | [diff] [blame] | 368 | RTA_NH_ID, |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 369 | __RTA_MAX |
| 370 | }; |
| 371 | |
| 372 | #define RTA_MAX (__RTA_MAX - 1) |
| 373 | |
| 374 | #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) |
| 375 | #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg)) |
| 376 | |
| 377 | /* RTM_MULTIPATH --- array of struct rtnexthop. |
| 378 | * |
| 379 | * "struct rtnexthop" describes all necessary nexthop information, |
| 380 | * i.e. parameters of path to a destination via this nexthop. |
| 381 | * |
| 382 | * At the moment it is impossible to set different prefsrc, mtu, window |
| 383 | * and rtt for different paths from multipath. |
| 384 | */ |
| 385 | |
| 386 | struct rtnexthop { |
| 387 | unsigned short rtnh_len; |
| 388 | unsigned char rtnh_flags; |
| 389 | unsigned char rtnh_hops; |
| 390 | int rtnh_ifindex; |
| 391 | }; |
| 392 | |
| 393 | /* rtnh_flags */ |
| 394 | |
| 395 | #define RTNH_F_DEAD 1 /* Nexthop is dead (used by multipath) */ |
| 396 | #define RTNH_F_PERVASIVE 2 /* Do recursive gateway lookup */ |
| 397 | #define RTNH_F_ONLINK 4 /* Gateway is forced on link */ |
Roopa Prabhu | eea3994 | 2015-05-13 21:17:41 -0700 | [diff] [blame] | 398 | #define RTNH_F_OFFLOAD 8 /* offloaded route */ |
Andy Gospodarek | 8a3d031 | 2015-06-23 13:45:36 -0400 | [diff] [blame] | 399 | #define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */ |
Nikolay Aleksandrov | 1708ebc | 2017-01-03 12:13:39 +0100 | [diff] [blame] | 400 | #define RTNH_F_UNRESOLVED 32 /* The entry is unresolved (ipmr) */ |
Andy Gospodarek | 8a3d031 | 2015-06-23 13:45:36 -0400 | [diff] [blame] | 401 | |
Jiri Pirko | 85dda4e | 2016-10-18 18:59:34 +0200 | [diff] [blame] | 402 | #define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | RTNH_F_OFFLOAD) |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 403 | |
| 404 | /* Macros to handle hexthops */ |
| 405 | |
| 406 | #define RTNH_ALIGNTO 4 |
| 407 | #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) |
| 408 | #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ |
| 409 | ((int)(rtnh)->rtnh_len) <= (len)) |
| 410 | #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) |
| 411 | #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len)) |
| 412 | #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) |
| 413 | #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) |
| 414 | |
Eric W. Biederman | 03c0566 | 2015-03-03 19:13:56 -0600 | [diff] [blame] | 415 | /* RTA_VIA */ |
| 416 | struct rtvia { |
| 417 | __kernel_sa_family_t rtvia_family; |
| 418 | __u8 rtvia_addr[0]; |
| 419 | }; |
| 420 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 421 | /* RTM_CACHEINFO */ |
| 422 | |
| 423 | struct rta_cacheinfo { |
| 424 | __u32 rta_clntref; |
| 425 | __u32 rta_lastuse; |
| 426 | __s32 rta_expires; |
| 427 | __u32 rta_error; |
| 428 | __u32 rta_used; |
| 429 | |
| 430 | #define RTNETLINK_HAVE_PEERINFO 1 |
| 431 | __u32 rta_id; |
| 432 | __u32 rta_ts; |
| 433 | __u32 rta_tsage; |
| 434 | }; |
| 435 | |
| 436 | /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */ |
| 437 | |
| 438 | enum { |
| 439 | RTAX_UNSPEC, |
| 440 | #define RTAX_UNSPEC RTAX_UNSPEC |
| 441 | RTAX_LOCK, |
| 442 | #define RTAX_LOCK RTAX_LOCK |
| 443 | RTAX_MTU, |
| 444 | #define RTAX_MTU RTAX_MTU |
| 445 | RTAX_WINDOW, |
| 446 | #define RTAX_WINDOW RTAX_WINDOW |
| 447 | RTAX_RTT, |
| 448 | #define RTAX_RTT RTAX_RTT |
| 449 | RTAX_RTTVAR, |
| 450 | #define RTAX_RTTVAR RTAX_RTTVAR |
| 451 | RTAX_SSTHRESH, |
| 452 | #define RTAX_SSTHRESH RTAX_SSTHRESH |
| 453 | RTAX_CWND, |
| 454 | #define RTAX_CWND RTAX_CWND |
| 455 | RTAX_ADVMSS, |
| 456 | #define RTAX_ADVMSS RTAX_ADVMSS |
| 457 | RTAX_REORDERING, |
| 458 | #define RTAX_REORDERING RTAX_REORDERING |
| 459 | RTAX_HOPLIMIT, |
| 460 | #define RTAX_HOPLIMIT RTAX_HOPLIMIT |
| 461 | RTAX_INITCWND, |
| 462 | #define RTAX_INITCWND RTAX_INITCWND |
| 463 | RTAX_FEATURES, |
| 464 | #define RTAX_FEATURES RTAX_FEATURES |
| 465 | RTAX_RTO_MIN, |
| 466 | #define RTAX_RTO_MIN RTAX_RTO_MIN |
| 467 | RTAX_INITRWND, |
| 468 | #define RTAX_INITRWND RTAX_INITRWND |
Cong Wang | bcefe17 | 2013-06-15 09:39:18 +0800 | [diff] [blame] | 469 | RTAX_QUICKACK, |
| 470 | #define RTAX_QUICKACK RTAX_QUICKACK |
Daniel Borkmann | ea69763 | 2015-01-05 23:57:47 +0100 | [diff] [blame] | 471 | RTAX_CC_ALGO, |
| 472 | #define RTAX_CC_ALGO RTAX_CC_ALGO |
Christoph Paasch | 71c0237 | 2017-10-23 13:22:23 -0700 | [diff] [blame] | 473 | RTAX_FASTOPEN_NO_COOKIE, |
| 474 | #define RTAX_FASTOPEN_NO_COOKIE RTAX_FASTOPEN_NO_COOKIE |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 475 | __RTAX_MAX |
| 476 | }; |
| 477 | |
| 478 | #define RTAX_MAX (__RTAX_MAX - 1) |
| 479 | |
Daniel Borkmann | b8d3e41 | 2015-08-31 15:58:46 +0200 | [diff] [blame] | 480 | #define RTAX_FEATURE_ECN (1 << 0) |
| 481 | #define RTAX_FEATURE_SACK (1 << 1) |
| 482 | #define RTAX_FEATURE_TIMESTAMP (1 << 2) |
| 483 | #define RTAX_FEATURE_ALLFRAG (1 << 3) |
| 484 | |
| 485 | #define RTAX_FEATURE_MASK (RTAX_FEATURE_ECN | RTAX_FEATURE_SACK | \ |
| 486 | RTAX_FEATURE_TIMESTAMP | RTAX_FEATURE_ALLFRAG) |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 487 | |
| 488 | struct rta_session { |
| 489 | __u8 proto; |
| 490 | __u8 pad1; |
| 491 | __u16 pad2; |
| 492 | |
| 493 | union { |
| 494 | struct { |
| 495 | __u16 sport; |
| 496 | __u16 dport; |
| 497 | } ports; |
| 498 | |
| 499 | struct { |
| 500 | __u8 type; |
| 501 | __u8 code; |
| 502 | __u16 ident; |
| 503 | } icmpt; |
| 504 | |
| 505 | __u32 spi; |
| 506 | } u; |
| 507 | }; |
| 508 | |
Nicolas Dichtel | adfa85e | 2012-12-04 01:13:37 +0000 | [diff] [blame] | 509 | struct rta_mfc_stats { |
| 510 | __u64 mfcs_packets; |
| 511 | __u64 mfcs_bytes; |
| 512 | __u64 mfcs_wrong_if; |
| 513 | }; |
| 514 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 515 | /**** |
| 516 | * General form of address family dependent message. |
| 517 | ****/ |
| 518 | |
| 519 | struct rtgenmsg { |
| 520 | unsigned char rtgen_family; |
| 521 | }; |
| 522 | |
| 523 | /***************************************************************** |
| 524 | * Link layer specific messages. |
| 525 | ****/ |
| 526 | |
| 527 | /* struct ifinfomsg |
| 528 | * passes link level specific information, not dependent |
| 529 | * on network protocol. |
| 530 | */ |
| 531 | |
| 532 | struct ifinfomsg { |
| 533 | unsigned char ifi_family; |
| 534 | unsigned char __ifi_pad; |
| 535 | unsigned short ifi_type; /* ARPHRD_* */ |
| 536 | int ifi_index; /* Link index */ |
| 537 | unsigned ifi_flags; /* IFF_* flags */ |
| 538 | unsigned ifi_change; /* IFF_* change mask */ |
| 539 | }; |
| 540 | |
| 541 | /******************************************************************** |
| 542 | * prefix information |
| 543 | ****/ |
| 544 | |
| 545 | struct prefixmsg { |
| 546 | unsigned char prefix_family; |
| 547 | unsigned char prefix_pad1; |
| 548 | unsigned short prefix_pad2; |
| 549 | int prefix_ifindex; |
| 550 | unsigned char prefix_type; |
| 551 | unsigned char prefix_len; |
| 552 | unsigned char prefix_flags; |
| 553 | unsigned char prefix_pad3; |
| 554 | }; |
| 555 | |
| 556 | enum |
| 557 | { |
| 558 | PREFIX_UNSPEC, |
| 559 | PREFIX_ADDRESS, |
| 560 | PREFIX_CACHEINFO, |
| 561 | __PREFIX_MAX |
| 562 | }; |
| 563 | |
| 564 | #define PREFIX_MAX (__PREFIX_MAX - 1) |
| 565 | |
| 566 | struct prefix_cacheinfo { |
| 567 | __u32 preferred_time; |
| 568 | __u32 valid_time; |
| 569 | }; |
| 570 | |
| 571 | |
| 572 | /***************************************************************** |
| 573 | * Traffic control messages. |
| 574 | ****/ |
| 575 | |
| 576 | struct tcmsg { |
| 577 | unsigned char tcm_family; |
| 578 | unsigned char tcm__pad1; |
| 579 | unsigned short tcm__pad2; |
| 580 | int tcm_ifindex; |
| 581 | __u32 tcm_handle; |
| 582 | __u32 tcm_parent; |
Jiri Pirko | 7960d1d | 2018-01-17 11:46:51 +0100 | [diff] [blame] | 583 | /* tcm_block_index is used instead of tcm_parent |
| 584 | * in case tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK |
| 585 | */ |
| 586 | #define tcm_block_index tcm_parent |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 587 | __u32 tcm_info; |
| 588 | }; |
| 589 | |
Jiri Pirko | 7960d1d | 2018-01-17 11:46:51 +0100 | [diff] [blame] | 590 | /* For manipulation of filters in shared block, tcm_ifindex is set to |
| 591 | * TCM_IFINDEX_MAGIC_BLOCK, and tcm_parent is aliased to tcm_block_index |
| 592 | * which is the block index. |
| 593 | */ |
| 594 | #define TCM_IFINDEX_MAGIC_BLOCK (0xFFFFFFFFU) |
| 595 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 596 | enum { |
| 597 | TCA_UNSPEC, |
| 598 | TCA_KIND, |
| 599 | TCA_OPTIONS, |
| 600 | TCA_STATS, |
| 601 | TCA_XSTATS, |
| 602 | TCA_RATE, |
| 603 | TCA_FCNT, |
| 604 | TCA_STATS2, |
| 605 | TCA_STAB, |
Nicolas Dichtel | 9854518e | 2016-04-26 10:06:18 +0200 | [diff] [blame] | 606 | TCA_PAD, |
Jiri Kosina | 49b4997 | 2017-03-08 16:03:32 +0100 | [diff] [blame] | 607 | TCA_DUMP_INVISIBLE, |
Jiri Pirko | 5bc1701 | 2017-05-17 11:08:01 +0200 | [diff] [blame] | 608 | TCA_CHAIN, |
Yuval Mintz | 7a4fa29 | 2017-12-14 15:54:29 +0200 | [diff] [blame] | 609 | TCA_HW_OFFLOAD, |
Jiri Pirko | d47a6b0 | 2018-01-17 11:46:52 +0100 | [diff] [blame] | 610 | TCA_INGRESS_BLOCK, |
| 611 | TCA_EGRESS_BLOCK, |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 612 | __TCA_MAX |
| 613 | }; |
| 614 | |
| 615 | #define TCA_MAX (__TCA_MAX - 1) |
| 616 | |
| 617 | #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) |
| 618 | #define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcmsg)) |
| 619 | |
| 620 | /******************************************************************** |
| 621 | * Neighbor Discovery userland options |
| 622 | ****/ |
| 623 | |
| 624 | struct nduseroptmsg { |
| 625 | unsigned char nduseropt_family; |
| 626 | unsigned char nduseropt_pad1; |
| 627 | unsigned short nduseropt_opts_len; /* Total length of options */ |
| 628 | int nduseropt_ifindex; |
| 629 | __u8 nduseropt_icmp_type; |
| 630 | __u8 nduseropt_icmp_code; |
| 631 | unsigned short nduseropt_pad2; |
| 632 | unsigned int nduseropt_pad3; |
| 633 | /* Followed by one or more ND options */ |
| 634 | }; |
| 635 | |
| 636 | enum { |
| 637 | NDUSEROPT_UNSPEC, |
| 638 | NDUSEROPT_SRCADDR, |
| 639 | __NDUSEROPT_MAX |
| 640 | }; |
| 641 | |
| 642 | #define NDUSEROPT_MAX (__NDUSEROPT_MAX - 1) |
| 643 | |
| 644 | #ifndef __KERNEL__ |
| 645 | /* RTnetlink multicast groups - backwards compatibility for userspace */ |
| 646 | #define RTMGRP_LINK 1 |
| 647 | #define RTMGRP_NOTIFY 2 |
| 648 | #define RTMGRP_NEIGH 4 |
| 649 | #define RTMGRP_TC 8 |
| 650 | |
| 651 | #define RTMGRP_IPV4_IFADDR 0x10 |
| 652 | #define RTMGRP_IPV4_MROUTE 0x20 |
| 653 | #define RTMGRP_IPV4_ROUTE 0x40 |
| 654 | #define RTMGRP_IPV4_RULE 0x80 |
| 655 | |
| 656 | #define RTMGRP_IPV6_IFADDR 0x100 |
| 657 | #define RTMGRP_IPV6_MROUTE 0x200 |
| 658 | #define RTMGRP_IPV6_ROUTE 0x400 |
| 659 | #define RTMGRP_IPV6_IFINFO 0x800 |
| 660 | |
| 661 | #define RTMGRP_DECnet_IFADDR 0x1000 |
| 662 | #define RTMGRP_DECnet_ROUTE 0x4000 |
| 663 | |
| 664 | #define RTMGRP_IPV6_PREFIX 0x20000 |
| 665 | #endif |
| 666 | |
| 667 | /* RTnetlink multicast groups */ |
| 668 | enum rtnetlink_groups { |
| 669 | RTNLGRP_NONE, |
| 670 | #define RTNLGRP_NONE RTNLGRP_NONE |
| 671 | RTNLGRP_LINK, |
| 672 | #define RTNLGRP_LINK RTNLGRP_LINK |
| 673 | RTNLGRP_NOTIFY, |
| 674 | #define RTNLGRP_NOTIFY RTNLGRP_NOTIFY |
| 675 | RTNLGRP_NEIGH, |
| 676 | #define RTNLGRP_NEIGH RTNLGRP_NEIGH |
| 677 | RTNLGRP_TC, |
| 678 | #define RTNLGRP_TC RTNLGRP_TC |
| 679 | RTNLGRP_IPV4_IFADDR, |
| 680 | #define RTNLGRP_IPV4_IFADDR RTNLGRP_IPV4_IFADDR |
| 681 | RTNLGRP_IPV4_MROUTE, |
| 682 | #define RTNLGRP_IPV4_MROUTE RTNLGRP_IPV4_MROUTE |
| 683 | RTNLGRP_IPV4_ROUTE, |
| 684 | #define RTNLGRP_IPV4_ROUTE RTNLGRP_IPV4_ROUTE |
| 685 | RTNLGRP_IPV4_RULE, |
| 686 | #define RTNLGRP_IPV4_RULE RTNLGRP_IPV4_RULE |
| 687 | RTNLGRP_IPV6_IFADDR, |
| 688 | #define RTNLGRP_IPV6_IFADDR RTNLGRP_IPV6_IFADDR |
| 689 | RTNLGRP_IPV6_MROUTE, |
| 690 | #define RTNLGRP_IPV6_MROUTE RTNLGRP_IPV6_MROUTE |
| 691 | RTNLGRP_IPV6_ROUTE, |
| 692 | #define RTNLGRP_IPV6_ROUTE RTNLGRP_IPV6_ROUTE |
| 693 | RTNLGRP_IPV6_IFINFO, |
| 694 | #define RTNLGRP_IPV6_IFINFO RTNLGRP_IPV6_IFINFO |
| 695 | RTNLGRP_DECnet_IFADDR, |
| 696 | #define RTNLGRP_DECnet_IFADDR RTNLGRP_DECnet_IFADDR |
| 697 | RTNLGRP_NOP2, |
| 698 | RTNLGRP_DECnet_ROUTE, |
| 699 | #define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE |
| 700 | RTNLGRP_DECnet_RULE, |
| 701 | #define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE |
| 702 | RTNLGRP_NOP4, |
| 703 | RTNLGRP_IPV6_PREFIX, |
| 704 | #define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX |
| 705 | RTNLGRP_IPV6_RULE, |
| 706 | #define RTNLGRP_IPV6_RULE RTNLGRP_IPV6_RULE |
| 707 | RTNLGRP_ND_USEROPT, |
| 708 | #define RTNLGRP_ND_USEROPT RTNLGRP_ND_USEROPT |
| 709 | RTNLGRP_PHONET_IFADDR, |
| 710 | #define RTNLGRP_PHONET_IFADDR RTNLGRP_PHONET_IFADDR |
| 711 | RTNLGRP_PHONET_ROUTE, |
| 712 | #define RTNLGRP_PHONET_ROUTE RTNLGRP_PHONET_ROUTE |
| 713 | RTNLGRP_DCB, |
| 714 | #define RTNLGRP_DCB RTNLGRP_DCB |
Nicolas Dichtel | edc9e74 | 2012-10-25 22:28:52 +0000 | [diff] [blame] | 715 | RTNLGRP_IPV4_NETCONF, |
| 716 | #define RTNLGRP_IPV4_NETCONF RTNLGRP_IPV4_NETCONF |
Nicolas Dichtel | f3a1bfb | 2012-10-25 22:28:50 +0000 | [diff] [blame] | 717 | RTNLGRP_IPV6_NETCONF, |
| 718 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF |
Cong Wang | 37a393b | 2012-12-11 22:23:07 +0000 | [diff] [blame] | 719 | RTNLGRP_MDB, |
| 720 | #define RTNLGRP_MDB RTNLGRP_MDB |
Eric W. Biederman | 8de147d | 2015-03-03 19:14:31 -0600 | [diff] [blame] | 721 | RTNLGRP_MPLS_ROUTE, |
| 722 | #define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE |
Nicolas Dichtel | 9a96345 | 2015-04-07 11:51:53 +0200 | [diff] [blame] | 723 | RTNLGRP_NSID, |
| 724 | #define RTNLGRP_NSID RTNLGRP_NSID |
David Ahern | 24045a0 | 2017-02-20 08:03:30 -0800 | [diff] [blame] | 725 | RTNLGRP_MPLS_NETCONF, |
| 726 | #define RTNLGRP_MPLS_NETCONF RTNLGRP_MPLS_NETCONF |
Julien Gomes | 5f729ea | 2017-06-20 13:54:16 -0700 | [diff] [blame] | 727 | RTNLGRP_IPV4_MROUTE_R, |
| 728 | #define RTNLGRP_IPV4_MROUTE_R RTNLGRP_IPV4_MROUTE_R |
| 729 | RTNLGRP_IPV6_MROUTE_R, |
| 730 | #define RTNLGRP_IPV6_MROUTE_R RTNLGRP_IPV6_MROUTE_R |
David Ahern | 65ee00a | 2019-05-24 14:43:03 -0700 | [diff] [blame] | 731 | RTNLGRP_NEXTHOP, |
| 732 | #define RTNLGRP_NEXTHOP RTNLGRP_NEXTHOP |
Nikolay Aleksandrov | cf5bddb | 2020-01-14 19:56:13 +0200 | [diff] [blame^] | 733 | RTNLGRP_BRVLAN, |
| 734 | #define RTNLGRP_BRVLAN RTNLGRP_BRVLAN |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 735 | __RTNLGRP_MAX |
| 736 | }; |
| 737 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) |
| 738 | |
| 739 | /* TC action piece */ |
| 740 | struct tcamsg { |
| 741 | unsigned char tca_family; |
| 742 | unsigned char tca__pad1; |
| 743 | unsigned short tca__pad2; |
| 744 | }; |
Jamal Hadi Salim | 90825b2 | 2017-07-30 13:24:51 -0400 | [diff] [blame] | 745 | |
| 746 | enum { |
| 747 | TCA_ROOT_UNSPEC, |
| 748 | TCA_ROOT_TAB, |
| 749 | #define TCA_ACT_TAB TCA_ROOT_TAB |
| 750 | #define TCAA_MAX TCA_ROOT_TAB |
| 751 | TCA_ROOT_FLAGS, |
| 752 | TCA_ROOT_COUNT, |
Jamal Hadi Salim | e62e484 | 2017-07-30 13:24:52 -0400 | [diff] [blame] | 753 | TCA_ROOT_TIME_DELTA, /* in msecs */ |
Jamal Hadi Salim | 90825b2 | 2017-07-30 13:24:51 -0400 | [diff] [blame] | 754 | __TCA_ROOT_MAX, |
| 755 | #define TCA_ROOT_MAX (__TCA_ROOT_MAX - 1) |
| 756 | }; |
| 757 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 758 | #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) |
| 759 | #define TA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcamsg)) |
Jamal Hadi Salim | 90825b2 | 2017-07-30 13:24:51 -0400 | [diff] [blame] | 760 | /* tcamsg flags stored in attribute TCA_ROOT_FLAGS |
| 761 | * |
| 762 | * TCA_FLAG_LARGE_DUMP_ON user->kernel to request for larger than TCA_ACT_MAX_PRIO |
| 763 | * actions in a dump. All dump responses will contain the number of actions |
| 764 | * being dumped stored in for user app's consumption in TCA_ROOT_COUNT |
| 765 | * |
| 766 | */ |
| 767 | #define TCA_FLAG_LARGE_DUMP_ON (1 << 0) |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 768 | |
| 769 | /* New extended info filters for IFLA_EXT_MASK */ |
| 770 | #define RTEXT_FILTER_VF (1 << 0) |
Vlad Yasevich | 6cbdcee | 2013-02-13 12:00:13 +0000 | [diff] [blame] | 771 | #define RTEXT_FILTER_BRVLAN (1 << 1) |
Roopa Prabhu | 35a27ce | 2015-01-10 07:31:13 -0800 | [diff] [blame] | 772 | #define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2) |
Sowmini Varadhan | d5566fd | 2015-09-11 16:48:48 -0400 | [diff] [blame] | 773 | #define RTEXT_FILTER_SKIP_STATS (1 << 3) |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 774 | |
| 775 | /* End of information exported to user level */ |
| 776 | |
| 777 | |
| 778 | |
| 779 | #endif /* _UAPI__LINUX_RTNETLINK_H */ |