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