]> git.proxmox.com Git - mirror_iproute2.git/blame - include/linux/rtnetlink.h
update kernel headers to 4.2-net-next
[mirror_iproute2.git] / include / linux / rtnetlink.h
CommitLineData
910773dc
SH
1#ifndef __LINUX_RTNETLINK_H
2#define __LINUX_RTNETLINK_H
0633baa1 3
67881151 4#include <linux/types.h>
0633baa1 5#include <linux/netlink.h>
ead2ba70 6#include <linux/if_link.h>
5a8ba228
SH
7#include <linux/if_addr.h>
8#include <linux/neighbour.h>
0633baa1 9
b4397f58
SH
10/* rtnetlink families. Values up to 127 are reserved for real address
11 * families, values above 128 may be used arbitrarily.
12 */
13#define RTNL_FAMILY_IPMR 128
14#define RTNL_FAMILY_IP6MR 129
15#define RTNL_FAMILY_MAX 129
16
0633baa1
SH
17/****
18 * Routing/neighbour discovery messages.
19 ****/
20
21/* Types of messages */
22
091ed219
SH
23enum {
24 RTM_BASE = 16,
25#define RTM_BASE RTM_BASE
26
27 RTM_NEWLINK = 16,
28#define RTM_NEWLINK RTM_NEWLINK
29 RTM_DELLINK,
30#define RTM_DELLINK RTM_DELLINK
31 RTM_GETLINK,
32#define RTM_GETLINK RTM_GETLINK
33 RTM_SETLINK,
34#define RTM_SETLINK RTM_SETLINK
35
36 RTM_NEWADDR = 20,
37#define RTM_NEWADDR RTM_NEWADDR
38 RTM_DELADDR,
39#define RTM_DELADDR RTM_DELADDR
40 RTM_GETADDR,
41#define RTM_GETADDR RTM_GETADDR
42
43 RTM_NEWROUTE = 24,
44#define RTM_NEWROUTE RTM_NEWROUTE
45 RTM_DELROUTE,
46#define RTM_DELROUTE RTM_DELROUTE
47 RTM_GETROUTE,
48#define RTM_GETROUTE RTM_GETROUTE
49
50 RTM_NEWNEIGH = 28,
51#define RTM_NEWNEIGH RTM_NEWNEIGH
52 RTM_DELNEIGH,
53#define RTM_DELNEIGH RTM_DELNEIGH
54 RTM_GETNEIGH,
55#define RTM_GETNEIGH RTM_GETNEIGH
56
57 RTM_NEWRULE = 32,
58#define RTM_NEWRULE RTM_NEWRULE
59 RTM_DELRULE,
60#define RTM_DELRULE RTM_DELRULE
61 RTM_GETRULE,
62#define RTM_GETRULE RTM_GETRULE
63
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
71 RTM_NEWTCLASS = 40,
72#define RTM_NEWTCLASS RTM_NEWTCLASS
73 RTM_DELTCLASS,
74#define RTM_DELTCLASS RTM_DELTCLASS
75 RTM_GETTCLASS,
76#define RTM_GETTCLASS RTM_GETTCLASS
77
78 RTM_NEWTFILTER = 44,
79#define RTM_NEWTFILTER RTM_NEWTFILTER
80 RTM_DELTFILTER,
81#define RTM_DELTFILTER RTM_DELTFILTER
82 RTM_GETTFILTER,
83#define RTM_GETTFILTER RTM_GETTFILTER
84
85 RTM_NEWACTION = 48,
86#define RTM_NEWACTION RTM_NEWACTION
87 RTM_DELACTION,
88#define RTM_DELACTION RTM_DELACTION
89 RTM_GETACTION,
90#define RTM_GETACTION RTM_GETACTION
91
92 RTM_NEWPREFIX = 52,
93#define RTM_NEWPREFIX RTM_NEWPREFIX
091ed219
SH
94
95 RTM_GETMULTICAST = 58,
96#define RTM_GETMULTICAST RTM_GETMULTICAST
97
98 RTM_GETANYCAST = 62,
99#define RTM_GETANYCAST RTM_GETANYCAST
100
ea8fc104
SH
101 RTM_NEWNEIGHTBL = 64,
102#define RTM_NEWNEIGHTBL RTM_NEWNEIGHTBL
103 RTM_GETNEIGHTBL = 66,
104#define RTM_GETNEIGHTBL RTM_GETNEIGHTBL
105 RTM_SETNEIGHTBL,
106#define RTM_SETNEIGHTBL RTM_SETNEIGHTBL
107
5472ac6f
SH
108 RTM_NEWNDUSEROPT = 68,
109#define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT
110
70e6e38a
SH
111 RTM_NEWADDRLABEL = 72,
112#define RTM_NEWADDRLABEL RTM_NEWADDRLABEL
113 RTM_DELADDRLABEL,
8007bfb5 114#define RTM_DELADDRLABEL RTM_DELADDRLABEL
70e6e38a
SH
115 RTM_GETADDRLABEL,
116#define RTM_GETADDRLABEL RTM_GETADDRLABEL
117
67881151
SH
118 RTM_GETDCB = 78,
119#define RTM_GETDCB RTM_GETDCB
120 RTM_SETDCB,
121#define RTM_SETDCB RTM_SETDCB
122
910773dc
SH
123 RTM_NEWNETCONF = 80,
124#define RTM_NEWNETCONF RTM_NEWNETCONF
125 RTM_GETNETCONF = 82,
126#define RTM_GETNETCONF RTM_GETNETCONF
127
9dca6767
CW
128 RTM_NEWMDB = 84,
129#define RTM_NEWMDB RTM_NEWMDB
130 RTM_DELMDB = 85,
131#define RTM_DELMDB RTM_DELMDB
910773dc
SH
132 RTM_GETMDB = 86,
133#define RTM_GETMDB RTM_GETMDB
134
8c58d403
SH
135 RTM_NEWNSID = 88,
136#define RTM_NEWNSID RTM_NEWNSID
e46efaed
SH
137 RTM_DELNSID = 89,
138#define RTM_DELNSID RTM_DELNSID
8c58d403
SH
139 RTM_GETNSID = 90,
140#define RTM_GETNSID RTM_GETNSID
141
ea8fc104
SH
142 __RTM_MAX,
143#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
091ed219 144};
0633baa1 145
ea8fc104
SH
146#define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE)
147#define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2)
148#define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2)
149
0633baa1
SH
150/*
151 Generic structure for encapsulation of optional route information.
152 It is reminiscent of sockaddr, but with sa_family replaced
153 with attribute type.
154 */
155
ab322673 156struct rtattr {
0633baa1
SH
157 unsigned short rta_len;
158 unsigned short rta_type;
159};
160
161/* Macros to handle rtattributes */
162
163#define RTA_ALIGNTO 4
164#define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
165#define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
166 (rta)->rta_len >= sizeof(struct rtattr) && \
167 (rta)->rta_len <= (len))
168#define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
170#define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
171#define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
172#define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
173#define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
174
175
176
177
178/******************************************************************************
179 * Definitions used in routing table administration.
180 ****/
181
ab322673 182struct rtmsg {
0633baa1
SH
183 unsigned char rtm_family;
184 unsigned char rtm_dst_len;
185 unsigned char rtm_src_len;
186 unsigned char rtm_tos;
187
188 unsigned char rtm_table; /* Routing table id */
189 unsigned char rtm_protocol; /* Routing protocol; see below */
190 unsigned char rtm_scope; /* See below */
191 unsigned char rtm_type; /* See below */
192
193 unsigned rtm_flags;
194};
195
196/* rtm_type */
197
ab322673 198enum {
0633baa1
SH
199 RTN_UNSPEC,
200 RTN_UNICAST, /* Gateway or direct route */
201 RTN_LOCAL, /* Accept locally */
202 RTN_BROADCAST, /* Accept locally as broadcast,
203 send as broadcast */
204 RTN_ANYCAST, /* Accept locally as broadcast,
205 but send as unicast */
206 RTN_MULTICAST, /* Multicast route */
207 RTN_BLACKHOLE, /* Drop */
208 RTN_UNREACHABLE, /* Destination is unreachable */
209 RTN_PROHIBIT, /* Administratively prohibited */
210 RTN_THROW, /* Not in this table */
211 RTN_NAT, /* Translate this address */
212 RTN_XRESOLVE, /* Use external resolver */
213 __RTN_MAX
214};
215
216#define RTN_MAX (__RTN_MAX - 1)
217
218
219/* rtm_protocol */
220
221#define RTPROT_UNSPEC 0
222#define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects;
223 not used by current IPv4 */
224#define RTPROT_KERNEL 2 /* Route installed by kernel */
225#define RTPROT_BOOT 3 /* Route installed during boot */
226#define RTPROT_STATIC 4 /* Route installed by administrator */
227
228/* Values of protocol >= RTPROT_STATIC are not interpreted by kernel;
229 they are just passed from user and back as is.
230 It will be used by hypothetical multiple routing daemons.
231 Note that protocol values should be standardized in order to
232 avoid conflicts.
233 */
234
235#define RTPROT_GATED 8 /* Apparently, GateD */
236#define RTPROT_RA 9 /* RDISC/ND router advertisements */
237#define RTPROT_MRT 10 /* Merit MRT */
238#define RTPROT_ZEBRA 11 /* Zebra */
239#define RTPROT_BIRD 12 /* BIRD */
240#define RTPROT_DNROUTED 13 /* DECnet routing daemon */
241#define RTPROT_XORP 14 /* XORP */
40b6c62c 242#define RTPROT_NTK 15 /* Netsukuku */
67881151 243#define RTPROT_DHCP 16 /* DHCP client */
910773dc 244#define RTPROT_MROUTED 17 /* Multicast daemon */
1fa804e0
DT
245#define RTPROT_BABEL 42 /* Babel daemon */
246
0633baa1
SH
247/* rtm_scope
248
249 Really it is not scope, but sort of distance to the destination.
250 NOWHERE are reserved for not existing destinations, HOST is our
251 local addresses, LINK are destinations, located on directly attached
252 link and UNIVERSE is everywhere in the Universe.
253
254 Intermediate values are also possible f.e. interior routes
255 could be assigned a value between UNIVERSE and LINK.
256*/
257
ab322673 258enum rt_scope_t {
0633baa1
SH
259 RT_SCOPE_UNIVERSE=0,
260/* User defined values */
261 RT_SCOPE_SITE=200,
262 RT_SCOPE_LINK=253,
263 RT_SCOPE_HOST=254,
264 RT_SCOPE_NOWHERE=255
265};
266
267/* rtm_flags */
268
269#define RTM_F_NOTIFY 0x100 /* Notify user of route change */
270#define RTM_F_CLONED 0x200 /* This route is cloned */
271#define RTM_F_EQUALIZE 0x400 /* Multipath equalizer: NI */
272#define RTM_F_PREFIX 0x800 /* Prefix addresses */
273
274/* Reserved table identifiers */
275
ab322673 276enum rt_class_t {
0633baa1
SH
277 RT_TABLE_UNSPEC=0,
278/* User defined values */
3ea2fb98 279 RT_TABLE_COMPAT=252,
0633baa1
SH
280 RT_TABLE_DEFAULT=253,
281 RT_TABLE_MAIN=254,
282 RT_TABLE_LOCAL=255,
ead2ba70 283 RT_TABLE_MAX=0xFFFFFFFF
0633baa1 284};
0633baa1
SH
285
286
287/* Routing message attributes */
288
ab322673 289enum rtattr_type_t {
0633baa1
SH
290 RTA_UNSPEC,
291 RTA_DST,
292 RTA_SRC,
293 RTA_IIF,
294 RTA_OIF,
295 RTA_GATEWAY,
296 RTA_PRIORITY,
297 RTA_PREFSRC,
298 RTA_METRICS,
299 RTA_MULTIPATH,
3ea2fb98 300 RTA_PROTOINFO, /* no longer used */
0633baa1
SH
301 RTA_FLOW,
302 RTA_CACHEINFO,
3ea2fb98 303 RTA_SESSION, /* no longer used */
a6ffa8b0 304 RTA_MP_ALGO, /* no longer used */
34e95647 305 RTA_TABLE,
04a9fc0a 306 RTA_MARK,
910773dc 307 RTA_MFC_STATS,
61333d24
SH
308 RTA_VIA,
309 RTA_NEWDST,
310 RTA_PREF,
a3563ede
SH
311 RTA_ENCAP_TYPE,
312 RTA_ENCAP,
0633baa1
SH
313 __RTA_MAX
314};
315
316#define RTA_MAX (__RTA_MAX - 1)
317
318#define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
319#define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
320
321/* RTM_MULTIPATH --- array of struct rtnexthop.
322 *
323 * "struct rtnexthop" describes all necessary nexthop information,
324 * i.e. parameters of path to a destination via this nexthop.
325 *
326 * At the moment it is impossible to set different prefsrc, mtu, window
327 * and rtt for different paths from multipath.
328 */
329
ab322673 330struct rtnexthop {
0633baa1
SH
331 unsigned short rtnh_len;
332 unsigned char rtnh_flags;
333 unsigned char rtnh_hops;
334 int rtnh_ifindex;
335};
336
337/* rtnh_flags */
338
339#define RTNH_F_DEAD 1 /* Nexthop is dead (used by multipath) */
340#define RTNH_F_PERVASIVE 2 /* Do recursive gateway lookup */
341#define RTNH_F_ONLINK 4 /* Gateway is forced on link */
ebfe4922 342#define RTNH_F_OFFLOAD 8 /* offloaded route */
ff631c3a
SH
343#define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */
344
345#define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN)
0633baa1
SH
346
347/* Macros to handle hexthops */
348
349#define RTNH_ALIGNTO 4
350#define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) )
351#define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
352 ((int)(rtnh)->rtnh_len) <= (len))
353#define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
354#define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
355#define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
356#define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
357
61333d24
SH
358/* RTA_VIA */
359struct rtvia {
360 __kernel_sa_family_t rtvia_family;
361 __u8 rtvia_addr[0];
362};
363
0633baa1
SH
364/* RTM_CACHEINFO */
365
ab322673 366struct rta_cacheinfo {
0633baa1
SH
367 __u32 rta_clntref;
368 __u32 rta_lastuse;
369 __s32 rta_expires;
370 __u32 rta_error;
371 __u32 rta_used;
372
373#define RTNETLINK_HAVE_PEERINFO 1
374 __u32 rta_id;
375 __u32 rta_ts;
376 __u32 rta_tsage;
377};
378
379/* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
380
ab322673 381enum {
0633baa1
SH
382 RTAX_UNSPEC,
383#define RTAX_UNSPEC RTAX_UNSPEC
384 RTAX_LOCK,
385#define RTAX_LOCK RTAX_LOCK
386 RTAX_MTU,
387#define RTAX_MTU RTAX_MTU
388 RTAX_WINDOW,
389#define RTAX_WINDOW RTAX_WINDOW
390 RTAX_RTT,
391#define RTAX_RTT RTAX_RTT
392 RTAX_RTTVAR,
393#define RTAX_RTTVAR RTAX_RTTVAR
394 RTAX_SSTHRESH,
395#define RTAX_SSTHRESH RTAX_SSTHRESH
396 RTAX_CWND,
397#define RTAX_CWND RTAX_CWND
398 RTAX_ADVMSS,
399#define RTAX_ADVMSS RTAX_ADVMSS
400 RTAX_REORDERING,
401#define RTAX_REORDERING RTAX_REORDERING
402 RTAX_HOPLIMIT,
403#define RTAX_HOPLIMIT RTAX_HOPLIMIT
404 RTAX_INITCWND,
405#define RTAX_INITCWND RTAX_INITCWND
406 RTAX_FEATURES,
407#define RTAX_FEATURES RTAX_FEATURES
dfd26e1c
SH
408 RTAX_RTO_MIN,
409#define RTAX_RTO_MIN RTAX_RTO_MIN
8ecdcce0
SH
410 RTAX_INITRWND,
411#define RTAX_INITRWND RTAX_INITRWND
ecefa08c
SH
412 RTAX_QUICKACK,
413#define RTAX_QUICKACK RTAX_QUICKACK
f233410d
SH
414 RTAX_CC_ALGO,
415#define RTAX_CC_ALGO RTAX_CC_ALGO
0633baa1
SH
416 __RTAX_MAX
417};
418
419#define RTAX_MAX (__RTAX_MAX - 1)
420
421#define RTAX_FEATURE_ECN 0x00000001
422#define RTAX_FEATURE_SACK 0x00000002
423#define RTAX_FEATURE_TIMESTAMP 0x00000004
206a0441 424#define RTAX_FEATURE_ALLFRAG 0x00000008
0633baa1 425
ab322673 426struct rta_session {
0633baa1 427 __u8 proto;
6864c1e7
SH
428 __u8 pad1;
429 __u16 pad2;
0633baa1
SH
430
431 union {
432 struct {
433 __u16 sport;
434 __u16 dport;
435 } ports;
436
437 struct {
438 __u8 type;
439 __u8 code;
440 __u16 ident;
441 } icmpt;
442
443 __u32 spi;
444 } u;
445};
446
910773dc
SH
447struct rta_mfc_stats {
448 __u64 mfcs_packets;
449 __u64 mfcs_bytes;
450 __u64 mfcs_wrong_if;
451};
452
0633baa1
SH
453/****
454 * General form of address family dependent message.
455 ****/
456
ab322673 457struct rtgenmsg {
0633baa1
SH
458 unsigned char rtgen_family;
459};
460
461/*****************************************************************
462 * Link layer specific messages.
463 ****/
464
465/* struct ifinfomsg
466 * passes link level specific information, not dependent
467 * on network protocol.
468 */
469
ab322673 470struct ifinfomsg {
0633baa1
SH
471 unsigned char ifi_family;
472 unsigned char __ifi_pad;
473 unsigned short ifi_type; /* ARPHRD_* */
474 int ifi_index; /* Link index */
475 unsigned ifi_flags; /* IFF_* flags */
476 unsigned ifi_change; /* IFF_* change mask */
477};
478
479/********************************************************************
480 * prefix information
481 ****/
482
ab322673 483struct prefixmsg {
0633baa1 484 unsigned char prefix_family;
6864c1e7
SH
485 unsigned char prefix_pad1;
486 unsigned short prefix_pad2;
0633baa1
SH
487 int prefix_ifindex;
488 unsigned char prefix_type;
489 unsigned char prefix_len;
490 unsigned char prefix_flags;
6864c1e7 491 unsigned char prefix_pad3;
0633baa1
SH
492};
493
494enum
495{
496 PREFIX_UNSPEC,
497 PREFIX_ADDRESS,
498 PREFIX_CACHEINFO,
499 __PREFIX_MAX
500};
501
502#define PREFIX_MAX (__PREFIX_MAX - 1)
503
ab322673 504struct prefix_cacheinfo {
0633baa1
SH
505 __u32 preferred_time;
506 __u32 valid_time;
507};
508
0633baa1
SH
509
510/*****************************************************************
511 * Traffic control messages.
512 ****/
513
ab322673 514struct tcmsg {
0633baa1
SH
515 unsigned char tcm_family;
516 unsigned char tcm__pad1;
517 unsigned short tcm__pad2;
518 int tcm_ifindex;
519 __u32 tcm_handle;
520 __u32 tcm_parent;
521 __u32 tcm_info;
522};
523
ab322673 524enum {
0633baa1
SH
525 TCA_UNSPEC,
526 TCA_KIND,
527 TCA_OPTIONS,
528 TCA_STATS,
529 TCA_XSTATS,
530 TCA_RATE,
531 TCA_FCNT,
e5879dc6 532 TCA_STATS2,
19ecc16d 533 TCA_STAB,
0633baa1
SH
534 __TCA_MAX
535};
536
537#define TCA_MAX (__TCA_MAX - 1)
538
539#define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
540#define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
541
5472ac6f
SH
542/********************************************************************
543 * Neighbor Discovery userland options
544 ****/
545
ab322673 546struct nduseroptmsg {
5472ac6f
SH
547 unsigned char nduseropt_family;
548 unsigned char nduseropt_pad1;
549 unsigned short nduseropt_opts_len; /* Total length of options */
550 int nduseropt_ifindex;
551 __u8 nduseropt_icmp_type;
552 __u8 nduseropt_icmp_code;
553 unsigned short nduseropt_pad2;
554 unsigned int nduseropt_pad3;
555 /* Followed by one or more ND options */
556};
557
ab322673 558enum {
5472ac6f
SH
559 NDUSEROPT_UNSPEC,
560 NDUSEROPT_SRCADDR,
561 __NDUSEROPT_MAX
562};
563
564#define NDUSEROPT_MAX (__NDUSEROPT_MAX - 1)
565
351efcde 566/* RTnetlink multicast groups - backwards compatibility for userspace */
0633baa1
SH
567#define RTMGRP_LINK 1
568#define RTMGRP_NOTIFY 2
569#define RTMGRP_NEIGH 4
570#define RTMGRP_TC 8
571
572#define RTMGRP_IPV4_IFADDR 0x10
573#define RTMGRP_IPV4_MROUTE 0x20
574#define RTMGRP_IPV4_ROUTE 0x40
8f8a3648 575#define RTMGRP_IPV4_RULE 0x80
0633baa1
SH
576
577#define RTMGRP_IPV6_IFADDR 0x100
578#define RTMGRP_IPV6_MROUTE 0x200
579#define RTMGRP_IPV6_ROUTE 0x400
580#define RTMGRP_IPV6_IFINFO 0x800
581
582#define RTMGRP_DECnet_IFADDR 0x1000
583#define RTMGRP_DECnet_ROUTE 0x4000
584
585#define RTMGRP_IPV6_PREFIX 0x20000
586
351efcde
SH
587/* RTnetlink multicast groups */
588enum rtnetlink_groups {
589 RTNLGRP_NONE,
590#define RTNLGRP_NONE RTNLGRP_NONE
591 RTNLGRP_LINK,
592#define RTNLGRP_LINK RTNLGRP_LINK
593 RTNLGRP_NOTIFY,
594#define RTNLGRP_NOTIFY RTNLGRP_NOTIFY
595 RTNLGRP_NEIGH,
596#define RTNLGRP_NEIGH RTNLGRP_NEIGH
597 RTNLGRP_TC,
598#define RTNLGRP_TC RTNLGRP_TC
599 RTNLGRP_IPV4_IFADDR,
600#define RTNLGRP_IPV4_IFADDR RTNLGRP_IPV4_IFADDR
601 RTNLGRP_IPV4_MROUTE,
602#define RTNLGRP_IPV4_MROUTE RTNLGRP_IPV4_MROUTE
603 RTNLGRP_IPV4_ROUTE,
604#define RTNLGRP_IPV4_ROUTE RTNLGRP_IPV4_ROUTE
8f8a3648
SH
605 RTNLGRP_IPV4_RULE,
606#define RTNLGRP_IPV4_RULE RTNLGRP_IPV4_RULE
351efcde
SH
607 RTNLGRP_IPV6_IFADDR,
608#define RTNLGRP_IPV6_IFADDR RTNLGRP_IPV6_IFADDR
609 RTNLGRP_IPV6_MROUTE,
610#define RTNLGRP_IPV6_MROUTE RTNLGRP_IPV6_MROUTE
611 RTNLGRP_IPV6_ROUTE,
612#define RTNLGRP_IPV6_ROUTE RTNLGRP_IPV6_ROUTE
613 RTNLGRP_IPV6_IFINFO,
614#define RTNLGRP_IPV6_IFINFO RTNLGRP_IPV6_IFINFO
615 RTNLGRP_DECnet_IFADDR,
616#define RTNLGRP_DECnet_IFADDR RTNLGRP_DECnet_IFADDR
09954dc6 617 RTNLGRP_NOP2,
351efcde
SH
618 RTNLGRP_DECnet_ROUTE,
619#define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE
ead2ba70
SH
620 RTNLGRP_DECnet_RULE,
621#define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE
09954dc6 622 RTNLGRP_NOP4,
351efcde
SH
623 RTNLGRP_IPV6_PREFIX,
624#define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX
ead2ba70
SH
625 RTNLGRP_IPV6_RULE,
626#define RTNLGRP_IPV6_RULE RTNLGRP_IPV6_RULE
5472ac6f
SH
627 RTNLGRP_ND_USEROPT,
628#define RTNLGRP_ND_USEROPT RTNLGRP_ND_USEROPT
05bfd165
SH
629 RTNLGRP_PHONET_IFADDR,
630#define RTNLGRP_PHONET_IFADDR RTNLGRP_PHONET_IFADDR
631 RTNLGRP_PHONET_ROUTE,
632#define RTNLGRP_PHONET_ROUTE RTNLGRP_PHONET_ROUTE
707f612c
SH
633 RTNLGRP_DCB,
634#define RTNLGRP_DCB RTNLGRP_DCB
910773dc
SH
635 RTNLGRP_IPV4_NETCONF,
636#define RTNLGRP_IPV4_NETCONF RTNLGRP_IPV4_NETCONF
637 RTNLGRP_IPV6_NETCONF,
638#define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF
4a4ee616
CW
639 RTNLGRP_MDB,
640#define RTNLGRP_MDB RTNLGRP_MDB
61333d24
SH
641 RTNLGRP_MPLS_ROUTE,
642#define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE
e46efaed
SH
643 RTNLGRP_NSID,
644#define RTNLGRP_NSID RTNLGRP_NSID
351efcde
SH
645 __RTNLGRP_MAX
646};
647#define RTNLGRP_MAX (__RTNLGRP_MAX - 1)
648
0633baa1 649/* TC action piece */
ab322673 650struct tcamsg {
0633baa1
SH
651 unsigned char tca_family;
652 unsigned char tca__pad1;
653 unsigned short tca__pad2;
654};
655#define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
656#define TA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcamsg))
657#define TCA_ACT_TAB 1 /* attr type must be >=1 */
658#define TCAA_MAX 1
659
c23abafb
SH
660/* New extended info filters for IFLA_EXT_MASK */
661#define RTEXT_FILTER_VF (1 << 0)
609106d3 662#define RTEXT_FILTER_BRVLAN (1 << 1)
f233410d 663#define RTEXT_FILTER_BRVLAN_COMPRESSED (1 << 2)
c23abafb 664
0633baa1
SH
665/* End of information exported to user level */
666
667
668
910773dc 669#endif /* __LINUX_RTNETLINK_H */