1 /**************************************************************************** 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 #include <linux/if_link.h> 24 #include <linux/if_addr.h> 25 #include <linux/neighbour.h> 26 #define RTNL_FAMILY_IPMR 128 27 #define RTNL_FAMILY_IP6MR 129 28 #define RTNL_FAMILY_MAX 129 29 enum { 30 RTM_BASE = 16, 31 #define RTM_BASE RTM_BASE 32 RTM_NEWLINK = 16, 33 #define RTM_NEWLINK RTM_NEWLINK 34 RTM_DELLINK, 35 #define RTM_DELLINK RTM_DELLINK 36 RTM_GETLINK, 37 #define RTM_GETLINK RTM_GETLINK 38 RTM_SETLINK, 39 #define RTM_SETLINK RTM_SETLINK 40 RTM_NEWADDR = 20, 41 #define RTM_NEWADDR RTM_NEWADDR 42 RTM_DELADDR, 43 #define RTM_DELADDR RTM_DELADDR 44 RTM_GETADDR, 45 #define RTM_GETADDR RTM_GETADDR 46 RTM_NEWROUTE = 24, 47 #define RTM_NEWROUTE RTM_NEWROUTE 48 RTM_DELROUTE, 49 #define RTM_DELROUTE RTM_DELROUTE 50 RTM_GETROUTE, 51 #define RTM_GETROUTE RTM_GETROUTE 52 RTM_NEWNEIGH = 28, 53 #define RTM_NEWNEIGH RTM_NEWNEIGH 54 RTM_DELNEIGH, 55 #define RTM_DELNEIGH RTM_DELNEIGH 56 RTM_GETNEIGH, 57 #define RTM_GETNEIGH RTM_GETNEIGH 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 RTM_NEWQDISC = 36, 65 #define RTM_NEWQDISC RTM_NEWQDISC 66 RTM_DELQDISC, 67 #define RTM_DELQDISC RTM_DELQDISC 68 RTM_GETQDISC, 69 #define RTM_GETQDISC RTM_GETQDISC 70 RTM_NEWTCLASS = 40, 71 #define RTM_NEWTCLASS RTM_NEWTCLASS 72 RTM_DELTCLASS, 73 #define RTM_DELTCLASS RTM_DELTCLASS 74 RTM_GETTCLASS, 75 #define RTM_GETTCLASS RTM_GETTCLASS 76 RTM_NEWTFILTER = 44, 77 #define RTM_NEWTFILTER RTM_NEWTFILTER 78 RTM_DELTFILTER, 79 #define RTM_DELTFILTER RTM_DELTFILTER 80 RTM_GETTFILTER, 81 #define RTM_GETTFILTER RTM_GETTFILTER 82 RTM_NEWACTION = 48, 83 #define RTM_NEWACTION RTM_NEWACTION 84 RTM_DELACTION, 85 #define RTM_DELACTION RTM_DELACTION 86 RTM_GETACTION, 87 #define RTM_GETACTION RTM_GETACTION 88 RTM_NEWPREFIX = 52, 89 #define RTM_NEWPREFIX RTM_NEWPREFIX 90 RTM_GETMULTICAST = 58, 91 #define RTM_GETMULTICAST RTM_GETMULTICAST 92 RTM_GETANYCAST = 62, 93 #define RTM_GETANYCAST RTM_GETANYCAST 94 RTM_NEWNEIGHTBL = 64, 95 #define RTM_NEWNEIGHTBL RTM_NEWNEIGHTBL 96 RTM_GETNEIGHTBL = 66, 97 #define RTM_GETNEIGHTBL RTM_GETNEIGHTBL 98 RTM_SETNEIGHTBL, 99 #define RTM_SETNEIGHTBL RTM_SETNEIGHTBL 100 RTM_NEWNDUSEROPT = 68, 101 #define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT 102 RTM_NEWADDRLABEL = 72, 103 #define RTM_NEWADDRLABEL RTM_NEWADDRLABEL 104 RTM_DELADDRLABEL, 105 #define RTM_DELADDRLABEL RTM_DELADDRLABEL 106 RTM_GETADDRLABEL, 107 #define RTM_GETADDRLABEL RTM_GETADDRLABEL 108 RTM_GETDCB = 78, 109 #define RTM_GETDCB RTM_GETDCB 110 RTM_SETDCB, 111 #define RTM_SETDCB RTM_SETDCB 112 RTM_NEWNETCONF = 80, 113 #define RTM_NEWNETCONF RTM_NEWNETCONF 114 RTM_DELNETCONF, 115 #define RTM_DELNETCONF RTM_DELNETCONF 116 RTM_GETNETCONF = 82, 117 #define RTM_GETNETCONF RTM_GETNETCONF 118 RTM_NEWMDB = 84, 119 #define RTM_NEWMDB RTM_NEWMDB 120 RTM_DELMDB = 85, 121 #define RTM_DELMDB RTM_DELMDB 122 RTM_GETMDB = 86, 123 #define RTM_GETMDB RTM_GETMDB 124 RTM_NEWNSID = 88, 125 #define RTM_NEWNSID RTM_NEWNSID 126 RTM_DELNSID = 89, 127 #define RTM_DELNSID RTM_DELNSID 128 RTM_GETNSID = 90, 129 #define RTM_GETNSID RTM_GETNSID 130 RTM_NEWSTATS = 92, 131 #define RTM_NEWSTATS RTM_NEWSTATS 132 RTM_GETSTATS = 94, 133 #define RTM_GETSTATS RTM_GETSTATS 134 RTM_NEWCACHEREPORT = 96, 135 #define RTM_NEWCACHEREPORT RTM_NEWCACHEREPORT 136 RTM_NEWCHAIN = 100, 137 #define RTM_NEWCHAIN RTM_NEWCHAIN 138 RTM_DELCHAIN, 139 #define RTM_DELCHAIN RTM_DELCHAIN 140 RTM_GETCHAIN, 141 #define RTM_GETCHAIN RTM_GETCHAIN 142 RTM_NEWNEXTHOP = 104, 143 #define RTM_NEWNEXTHOP RTM_NEWNEXTHOP 144 RTM_DELNEXTHOP, 145 #define RTM_DELNEXTHOP RTM_DELNEXTHOP 146 RTM_GETNEXTHOP, 147 #define RTM_GETNEXTHOP RTM_GETNEXTHOP 148 RTM_NEWLINKPROP = 108, 149 #define RTM_NEWLINKPROP RTM_NEWLINKPROP 150 RTM_DELLINKPROP, 151 #define RTM_DELLINKPROP RTM_DELLINKPROP 152 RTM_GETLINKPROP, 153 #define RTM_GETLINKPROP RTM_GETLINKPROP 154 RTM_NEWVLAN = 112, 155 #define RTM_NEWNVLAN RTM_NEWVLAN 156 RTM_DELVLAN, 157 #define RTM_DELVLAN RTM_DELVLAN 158 RTM_GETVLAN, 159 #define RTM_GETVLAN RTM_GETVLAN 160 __RTM_MAX, 161 #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) 162 }; 163 #define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE) 164 #define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2) 165 #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) 166 struct rtattr { 167 unsigned short rta_len; 168 unsigned short rta_type; 169 }; 170 #define RTA_ALIGNTO 4U 171 #define RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) 172 #define RTA_OK(rta,len) ((len) >= (int) sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len)) 173 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr *) (((char *) (rta)) + RTA_ALIGN((rta)->rta_len))) 174 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 175 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) 176 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) 177 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) 178 struct rtmsg { 179 unsigned char rtm_family; 180 unsigned char rtm_dst_len; 181 unsigned char rtm_src_len; 182 unsigned char rtm_tos; 183 unsigned char rtm_table; 184 unsigned char rtm_protocol; 185 unsigned char rtm_scope; 186 unsigned char rtm_type; 187 unsigned rtm_flags; 188 }; 189 enum { 190 RTN_UNSPEC, 191 RTN_UNICAST, 192 RTN_LOCAL, 193 RTN_BROADCAST, 194 RTN_ANYCAST, 195 RTN_MULTICAST, 196 RTN_BLACKHOLE, 197 RTN_UNREACHABLE, 198 RTN_PROHIBIT, 199 RTN_THROW, 200 RTN_NAT, 201 RTN_XRESOLVE, 202 __RTN_MAX 203 }; 204 #define RTN_MAX (__RTN_MAX - 1) 205 #define RTPROT_UNSPEC 0 206 #define RTPROT_REDIRECT 1 207 #define RTPROT_KERNEL 2 208 #define RTPROT_BOOT 3 209 #define RTPROT_STATIC 4 210 #define RTPROT_GATED 8 211 #define RTPROT_RA 9 212 #define RTPROT_MRT 10 213 #define RTPROT_ZEBRA 11 214 #define RTPROT_BIRD 12 215 #define RTPROT_DNROUTED 13 216 #define RTPROT_XORP 14 217 #define RTPROT_NTK 15 218 #define RTPROT_DHCP 16 219 #define RTPROT_MROUTED 17 220 #define RTPROT_BABEL 42 221 #define RTPROT_BGP 186 222 #define RTPROT_ISIS 187 223 #define RTPROT_OSPF 188 224 #define RTPROT_RIP 189 225 #define RTPROT_EIGRP 192 226 enum rt_scope_t { 227 RT_SCOPE_UNIVERSE = 0, 228 RT_SCOPE_SITE = 200, 229 RT_SCOPE_LINK = 253, 230 RT_SCOPE_HOST = 254, 231 RT_SCOPE_NOWHERE = 255 232 }; 233 #define RTM_F_NOTIFY 0x100 234 #define RTM_F_CLONED 0x200 235 #define RTM_F_EQUALIZE 0x400 236 #define RTM_F_PREFIX 0x800 237 #define RTM_F_LOOKUP_TABLE 0x1000 238 #define RTM_F_FIB_MATCH 0x2000 239 #define RTM_F_OFFLOAD 0x4000 240 #define RTM_F_TRAP 0x8000 241 enum rt_class_t { 242 RT_TABLE_UNSPEC = 0, 243 RT_TABLE_COMPAT = 252, 244 RT_TABLE_DEFAULT = 253, 245 RT_TABLE_MAIN = 254, 246 RT_TABLE_LOCAL = 255, 247 RT_TABLE_MAX = 0xFFFFFFFF 248 }; 249 enum rtattr_type_t { 250 RTA_UNSPEC, 251 RTA_DST, 252 RTA_SRC, 253 RTA_IIF, 254 RTA_OIF, 255 RTA_GATEWAY, 256 RTA_PRIORITY, 257 RTA_PREFSRC, 258 RTA_METRICS, 259 RTA_MULTIPATH, 260 RTA_PROTOINFO, 261 RTA_FLOW, 262 RTA_CACHEINFO, 263 RTA_SESSION, 264 RTA_MP_ALGO, 265 RTA_TABLE, 266 RTA_MARK, 267 RTA_MFC_STATS, 268 RTA_VIA, 269 RTA_NEWDST, 270 RTA_PREF, 271 RTA_ENCAP_TYPE, 272 RTA_ENCAP, 273 RTA_EXPIRES, 274 RTA_PAD, 275 RTA_UID, 276 RTA_TTL_PROPAGATE, 277 RTA_IP_PROTO, 278 RTA_SPORT, 279 RTA_DPORT, 280 RTA_NH_ID, 281 __RTA_MAX 282 }; 283 #define RTA_MAX (__RTA_MAX - 1) 284 #define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 285 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct rtmsg)) 286 struct rtnexthop { 287 unsigned short rtnh_len; 288 unsigned char rtnh_flags; 289 unsigned char rtnh_hops; 290 int rtnh_ifindex; 291 }; 292 #define RTNH_F_DEAD 1 293 #define RTNH_F_PERVASIVE 2 294 #define RTNH_F_ONLINK 4 295 #define RTNH_F_OFFLOAD 8 296 #define RTNH_F_LINKDOWN 16 297 #define RTNH_F_UNRESOLVED 32 298 #define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | RTNH_F_OFFLOAD) 299 #define RTNH_ALIGNTO 4 300 #define RTNH_ALIGN(len) (((len) + RTNH_ALIGNTO - 1) & ~(RTNH_ALIGNTO - 1)) 301 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int) (rtnh)->rtnh_len) <= (len)) 302 #define RTNH_NEXT(rtnh) ((struct rtnexthop *) (((char *) (rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 303 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len)) 304 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) 305 #define RTNH_DATA(rtnh) ((struct rtattr *) (((char *) (rtnh)) + RTNH_LENGTH(0))) 306 struct rtvia { 307 __kernel_sa_family_t rtvia_family; 308 __u8 rtvia_addr[0]; 309 }; 310 struct rta_cacheinfo { 311 __u32 rta_clntref; 312 __u32 rta_lastuse; 313 __s32 rta_expires; 314 __u32 rta_error; 315 __u32 rta_used; 316 #define RTNETLINK_HAVE_PEERINFO 1 317 __u32 rta_id; 318 __u32 rta_ts; 319 __u32 rta_tsage; 320 }; 321 enum { 322 RTAX_UNSPEC, 323 #define RTAX_UNSPEC RTAX_UNSPEC 324 RTAX_LOCK, 325 #define RTAX_LOCK RTAX_LOCK 326 RTAX_MTU, 327 #define RTAX_MTU RTAX_MTU 328 RTAX_WINDOW, 329 #define RTAX_WINDOW RTAX_WINDOW 330 RTAX_RTT, 331 #define RTAX_RTT RTAX_RTT 332 RTAX_RTTVAR, 333 #define RTAX_RTTVAR RTAX_RTTVAR 334 RTAX_SSTHRESH, 335 #define RTAX_SSTHRESH RTAX_SSTHRESH 336 RTAX_CWND, 337 #define RTAX_CWND RTAX_CWND 338 RTAX_ADVMSS, 339 #define RTAX_ADVMSS RTAX_ADVMSS 340 RTAX_REORDERING, 341 #define RTAX_REORDERING RTAX_REORDERING 342 RTAX_HOPLIMIT, 343 #define RTAX_HOPLIMIT RTAX_HOPLIMIT 344 RTAX_INITCWND, 345 #define RTAX_INITCWND RTAX_INITCWND 346 RTAX_FEATURES, 347 #define RTAX_FEATURES RTAX_FEATURES 348 RTAX_RTO_MIN, 349 #define RTAX_RTO_MIN RTAX_RTO_MIN 350 RTAX_INITRWND, 351 #define RTAX_INITRWND RTAX_INITRWND 352 RTAX_QUICKACK, 353 #define RTAX_QUICKACK RTAX_QUICKACK 354 RTAX_CC_ALGO, 355 #define RTAX_CC_ALGO RTAX_CC_ALGO 356 RTAX_FASTOPEN_NO_COOKIE, 357 #define RTAX_FASTOPEN_NO_COOKIE RTAX_FASTOPEN_NO_COOKIE 358 __RTAX_MAX 359 }; 360 #define RTAX_MAX (__RTAX_MAX - 1) 361 #define RTAX_FEATURE_ECN (1 << 0) 362 #define RTAX_FEATURE_SACK (1 << 1) 363 #define RTAX_FEATURE_TIMESTAMP (1 << 2) 364 #define RTAX_FEATURE_ALLFRAG (1 << 3) 365 #define RTAX_FEATURE_MASK (RTAX_FEATURE_ECN | RTAX_FEATURE_SACK | RTAX_FEATURE_TIMESTAMP | RTAX_FEATURE_ALLFRAG) 366 struct rta_session { 367 __u8 proto; 368 __u8 pad1; 369 __u16 pad2; 370 union { 371 struct { 372 __u16 sport; 373 __u16 dport; 374 } ports; 375 struct { 376 __u8 type; 377 __u8 code; 378 __u16 ident; 379 } icmpt; 380 __u32 spi; 381 } u; 382 }; 383 struct rta_mfc_stats { 384 __u64 mfcs_packets; 385 __u64 mfcs_bytes; 386 __u64 mfcs_wrong_if; 387 }; 388 struct rtgenmsg { 389 unsigned char rtgen_family; 390 }; 391 struct ifinfomsg { 392 unsigned char ifi_family; 393 unsigned char __ifi_pad; 394 unsigned short ifi_type; 395 int ifi_index; 396 unsigned ifi_flags; 397 unsigned ifi_change; 398 }; 399 struct prefixmsg { 400 unsigned char prefix_family; 401 unsigned char prefix_pad1; 402 unsigned short prefix_pad2; 403 int prefix_ifindex; 404 unsigned char prefix_type; 405 unsigned char prefix_len; 406 unsigned char prefix_flags; 407 unsigned char prefix_pad3; 408 }; 409 enum { 410 PREFIX_UNSPEC, 411 PREFIX_ADDRESS, 412 PREFIX_CACHEINFO, 413 __PREFIX_MAX 414 }; 415 #define PREFIX_MAX (__PREFIX_MAX - 1) 416 struct prefix_cacheinfo { 417 __u32 preferred_time; 418 __u32 valid_time; 419 }; 420 struct tcmsg { 421 unsigned char tcm_family; 422 unsigned char tcm__pad1; 423 unsigned short tcm__pad2; 424 int tcm_ifindex; 425 __u32 tcm_handle; 426 __u32 tcm_parent; 427 #define tcm_block_index tcm_parent 428 __u32 tcm_info; 429 }; 430 #define TCM_IFINDEX_MAGIC_BLOCK (0xFFFFFFFFU) 431 enum { 432 TCA_UNSPEC, 433 TCA_KIND, 434 TCA_OPTIONS, 435 TCA_STATS, 436 TCA_XSTATS, 437 TCA_RATE, 438 TCA_FCNT, 439 TCA_STATS2, 440 TCA_STAB, 441 TCA_PAD, 442 TCA_DUMP_INVISIBLE, 443 TCA_CHAIN, 444 TCA_HW_OFFLOAD, 445 TCA_INGRESS_BLOCK, 446 TCA_EGRESS_BLOCK, 447 __TCA_MAX 448 }; 449 #define TCA_MAX (__TCA_MAX - 1) 450 #define TCA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 451 #define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct tcmsg)) 452 struct nduseroptmsg { 453 unsigned char nduseropt_family; 454 unsigned char nduseropt_pad1; 455 unsigned short nduseropt_opts_len; 456 int nduseropt_ifindex; 457 __u8 nduseropt_icmp_type; 458 __u8 nduseropt_icmp_code; 459 unsigned short nduseropt_pad2; 460 unsigned int nduseropt_pad3; 461 }; 462 enum { 463 NDUSEROPT_UNSPEC, 464 NDUSEROPT_SRCADDR, 465 __NDUSEROPT_MAX 466 }; 467 #define NDUSEROPT_MAX (__NDUSEROPT_MAX - 1) 468 #define RTMGRP_LINK 1 469 #define RTMGRP_NOTIFY 2 470 #define RTMGRP_NEIGH 4 471 #define RTMGRP_TC 8 472 #define RTMGRP_IPV4_IFADDR 0x10 473 #define RTMGRP_IPV4_MROUTE 0x20 474 #define RTMGRP_IPV4_ROUTE 0x40 475 #define RTMGRP_IPV4_RULE 0x80 476 #define RTMGRP_IPV6_IFADDR 0x100 477 #define RTMGRP_IPV6_MROUTE 0x200 478 #define RTMGRP_IPV6_ROUTE 0x400 479 #define RTMGRP_IPV6_IFINFO 0x800 480 #define RTMGRP_DECnet_IFADDR 0x1000 481 #define RTMGRP_DECnet_ROUTE 0x4000 482 #define RTMGRP_IPV6_PREFIX 0x20000 483 enum rtnetlink_groups { 484 RTNLGRP_NONE, 485 #define RTNLGRP_NONE RTNLGRP_NONE 486 RTNLGRP_LINK, 487 #define RTNLGRP_LINK RTNLGRP_LINK 488 RTNLGRP_NOTIFY, 489 #define RTNLGRP_NOTIFY RTNLGRP_NOTIFY 490 RTNLGRP_NEIGH, 491 #define RTNLGRP_NEIGH RTNLGRP_NEIGH 492 RTNLGRP_TC, 493 #define RTNLGRP_TC RTNLGRP_TC 494 RTNLGRP_IPV4_IFADDR, 495 #define RTNLGRP_IPV4_IFADDR RTNLGRP_IPV4_IFADDR 496 RTNLGRP_IPV4_MROUTE, 497 #define RTNLGRP_IPV4_MROUTE RTNLGRP_IPV4_MROUTE 498 RTNLGRP_IPV4_ROUTE, 499 #define RTNLGRP_IPV4_ROUTE RTNLGRP_IPV4_ROUTE 500 RTNLGRP_IPV4_RULE, 501 #define RTNLGRP_IPV4_RULE RTNLGRP_IPV4_RULE 502 RTNLGRP_IPV6_IFADDR, 503 #define RTNLGRP_IPV6_IFADDR RTNLGRP_IPV6_IFADDR 504 RTNLGRP_IPV6_MROUTE, 505 #define RTNLGRP_IPV6_MROUTE RTNLGRP_IPV6_MROUTE 506 RTNLGRP_IPV6_ROUTE, 507 #define RTNLGRP_IPV6_ROUTE RTNLGRP_IPV6_ROUTE 508 RTNLGRP_IPV6_IFINFO, 509 #define RTNLGRP_IPV6_IFINFO RTNLGRP_IPV6_IFINFO 510 RTNLGRP_DECnet_IFADDR, 511 #define RTNLGRP_DECnet_IFADDR RTNLGRP_DECnet_IFADDR 512 RTNLGRP_NOP2, 513 RTNLGRP_DECnet_ROUTE, 514 #define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE 515 RTNLGRP_DECnet_RULE, 516 #define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE 517 RTNLGRP_NOP4, 518 RTNLGRP_IPV6_PREFIX, 519 #define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX 520 RTNLGRP_IPV6_RULE, 521 #define RTNLGRP_IPV6_RULE RTNLGRP_IPV6_RULE 522 RTNLGRP_ND_USEROPT, 523 #define RTNLGRP_ND_USEROPT RTNLGRP_ND_USEROPT 524 RTNLGRP_PHONET_IFADDR, 525 #define RTNLGRP_PHONET_IFADDR RTNLGRP_PHONET_IFADDR 526 RTNLGRP_PHONET_ROUTE, 527 #define RTNLGRP_PHONET_ROUTE RTNLGRP_PHONET_ROUTE 528 RTNLGRP_DCB, 529 #define RTNLGRP_DCB RTNLGRP_DCB 530 RTNLGRP_IPV4_NETCONF, 531 #define RTNLGRP_IPV4_NETCONF RTNLGRP_IPV4_NETCONF 532 RTNLGRP_IPV6_NETCONF, 533 #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF 534 RTNLGRP_MDB, 535 #define RTNLGRP_MDB RTNLGRP_MDB 536 RTNLGRP_MPLS_ROUTE, 537 #define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE 538 RTNLGRP_NSID, 539 #define RTNLGRP_NSID RTNLGRP_NSID 540 RTNLGRP_MPLS_NETCONF, 541 #define RTNLGRP_MPLS_NETCONF RTNLGRP_MPLS_NETCONF 542 RTNLGRP_IPV4_MROUTE_R, 543 #define RTNLGRP_IPV4_MROUTE_R RTNLGRP_IPV4_MROUTE_R 544 RTNLGRP_IPV6_MROUTE_R, 545 #define RTNLGRP_IPV6_MROUTE_R RTNLGRP_IPV6_MROUTE_R 546 RTNLGRP_NEXTHOP, 547 #define RTNLGRP_NEXTHOP RTNLGRP_NEXTHOP 548 RTNLGRP_BRVLAN, 549 #define RTNLGRP_BRVLAN RTNLGRP_BRVLAN 550 __RTNLGRP_MAX 551 }; 552 #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) 553 struct tcamsg { 554 unsigned char tca_family; 555 unsigned char tca__pad1; 556 unsigned short tca__pad2; 557 }; 558 enum { 559 TCA_ROOT_UNSPEC, 560 TCA_ROOT_TAB, 561 #define TCA_ACT_TAB TCA_ROOT_TAB 562 #define TCAA_MAX TCA_ROOT_TAB 563 TCA_ROOT_FLAGS, 564 TCA_ROOT_COUNT, 565 TCA_ROOT_TIME_DELTA, 566 __TCA_ROOT_MAX, 567 #define TCA_ROOT_MAX (__TCA_ROOT_MAX - 1) 568 }; 569 #define TA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) 570 #define TA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct tcamsg)) 571 #define TCA_FLAG_LARGE_DUMP_ON (1 << 0) 572 #define RTEXT_FILTER_VF (1 << 0) 573 #define RTEXT_FILTER_BRVLAN (1 << 1) 574 #define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2) 575 #define RTEXT_FILTER_SKIP_STATS (1 << 3) 576 #endif 577