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