Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

rtnetlink.h File Reference

#include <linux/netlink.h>

Include dependency graph for rtnetlink.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RTNL_DEBUG   1
#define RTM_BASE   0x10
#define RTM_NEWLINK   (RTM_BASE+0)
#define RTM_DELLINK   (RTM_BASE+1)
#define RTM_GETLINK   (RTM_BASE+2)
#define RTM_NEWADDR   (RTM_BASE+4)
#define RTM_DELADDR   (RTM_BASE+5)
#define RTM_GETADDR   (RTM_BASE+6)
#define RTM_NEWROUTE   (RTM_BASE+8)
#define RTM_DELROUTE   (RTM_BASE+9)
#define RTM_GETROUTE   (RTM_BASE+10)
#define RTM_NEWNEIGH   (RTM_BASE+12)
#define RTM_DELNEIGH   (RTM_BASE+13)
#define RTM_GETNEIGH   (RTM_BASE+14)
#define RTM_NEWRULE   (RTM_BASE+16)
#define RTM_DELRULE   (RTM_BASE+17)
#define RTM_GETRULE   (RTM_BASE+18)
#define RTM_NEWQDISC   (RTM_BASE+20)
#define RTM_DELQDISC   (RTM_BASE+21)
#define RTM_GETQDISC   (RTM_BASE+22)
#define RTM_NEWTCLASS   (RTM_BASE+24)
#define RTM_DELTCLASS   (RTM_BASE+25)
#define RTM_GETTCLASS   (RTM_BASE+26)
#define RTM_NEWTFILTER   (RTM_BASE+28)
#define RTM_DELTFILTER   (RTM_BASE+29)
#define RTM_GETTFILTER   (RTM_BASE+30)
#define RTM_MAX   (RTM_BASE+31)
#define RTA_ALIGNTO   4
#define RTA_ALIGN(len)   ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
#define RTA_OK(rta, len)
#define RTA_NEXT(rta, attrlen)
#define RTA_LENGTH(len)   (RTA_ALIGN(sizeof(struct rtattr)) + (len))
#define RTA_SPACE(len)   RTA_ALIGN(RTA_LENGTH(len))
#define RTA_DATA(rta)   ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
#define RTA_PAYLOAD(rta)   ((int)((rta)->rta_len) - RTA_LENGTH(0))
#define RTN_MAX   RTN_XRESOLVE
#define RTPROT_UNSPEC   0
#define RTPROT_REDIRECT   1
#define RTPROT_KERNEL   2
#define RTPROT_BOOT   3
#define RTPROT_STATIC   4
#define RTPROT_GATED   8
#define RTPROT_RA   9
#define RTPROT_MRT   10
#define RTPROT_ZEBRA   11
#define RTPROT_BIRD   12
#define RTM_F_NOTIFY   0x100
#define RTM_F_CLONED   0x200
#define RTM_F_EQUALIZE   0x400
#define RT_TABLE_MAX   RT_TABLE_LOCAL
#define RTA_MAX   RTA_CACHEINFO
#define RTM_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
#define RTM_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
#define RTNH_F_DEAD   1
#define RTNH_F_PERVASIVE   2
#define RTNH_F_ONLINK   4
#define RTNH_ALIGNTO   4
#define RTNH_ALIGN(len)   ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) )
#define RTNH_OK(rtnh, len)
#define RTNH_NEXT(rtnh)   ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
#define RTNH_LENGTH(len)   (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
#define RTNH_SPACE(len)   RTNH_ALIGN(RTNH_LENGTH(len))
#define RTNH_DATA(rtnh)   ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
#define RTAX_MAX   RTAX_CWND
#define IFA_MAX   IFA_CACHEINFO
#define IFA_F_SECONDARY   0x01
#define IFA_F_DEPRECATED   0x20
#define IFA_F_TENTATIVE   0x40
#define IFA_F_PERMANENT   0x80
#define IFA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
#define IFA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
#define NDA_MAX   NDA_CACHEINFO
#define NDA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
#define NDA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct ndmsg))
#define NTF_PROXY   0x08
#define NTF_ROUTER   0x80
#define NUD_INCOMPLETE   0x01
#define NUD_REACHABLE   0x02
#define NUD_STALE   0x04
#define NUD_DELAY   0x08
#define NUD_PROBE   0x10
#define NUD_FAILED   0x20
#define NUD_NOARP   0x40
#define NUD_PERMANENT   0x80
#define NUD_NONE   0x00
#define IFLA_MAX   IFLA_STATS
#define IFLA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
#define IFLA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
#define TCA_MAX   TCA_RATE
#define TCA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
#define TCA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
#define RTATTR_MAX   RTA_MAX
#define RTMGRP_LINK   1
#define RTMGRP_NOTIFY   2
#define RTMGRP_NEIGH   4
#define RTMGRP_TC   8
#define RTMGRP_IPV4_IFADDR   0x10
#define RTMGRP_IPV4_MROUTE   0x20
#define RTMGRP_IPV4_ROUTE   0x40
#define RTMGRP_IPV6_IFADDR   0x100
#define RTMGRP_IPV6_MROUTE   0x200
#define RTMGRP_IPV6_ROUTE   0x400

Enumerations

enum  {
  RTN_UNSPEC, RTN_UNICAST, RTN_LOCAL, RTN_BROADCAST,
  RTN_ANYCAST, RTN_MULTICAST, RTN_BLACKHOLE, RTN_UNREACHABLE,
  RTN_PROHIBIT, RTN_THROW, RTN_NAT, RTN_XRESOLVE
}
enum  rt_scope_t {
  RT_SCOPE_UNIVERSE = 0, RT_SCOPE_SITE = 200, RT_SCOPE_LINK = 253, RT_SCOPE_HOST = 254,
  RT_SCOPE_NOWHERE = 255
}
enum  rt_class_t { RT_TABLE_UNSPEC = 0, RT_TABLE_DEFAULT = 253, RT_TABLE_MAIN = 254, RT_TABLE_LOCAL = 255 }
enum  rtattr_type_t {
  RTA_UNSPEC, RTA_DST, RTA_SRC, RTA_IIF,
  RTA_OIF, RTA_GATEWAY, RTA_PRIORITY, RTA_PREFSRC,
  RTA_METRICS, RTA_MULTIPATH, RTA_PROTOINFO, RTA_FLOW,
  RTA_CACHEINFO
}
enum  {
  RTAX_UNSPEC, RTAX_LOCK, RTAX_MTU, RTAX_WINDOW,
  RTAX_RTT, RTAX_HOPS, RTAX_SSTHRESH, RTAX_CWND
}
enum  {
  IFA_UNSPEC, IFA_ADDRESS, IFA_LOCAL, IFA_LABEL,
  IFA_BROADCAST, IFA_ANYCAST, IFA_CACHEINFO
}
enum  { NDA_UNSPEC, NDA_DST, NDA_LLADDR, NDA_CACHEINFO }
enum  {
  IFLA_UNSPEC, IFLA_ADDRESS, IFLA_BROADCAST, IFLA_IFNAME,
  IFLA_MTU, IFLA_LINK, IFLA_QDISC, IFLA_STATS
}
enum  {
  TCA_UNSPEC, TCA_KIND, TCA_OPTIONS, TCA_STATS,
  TCA_XSTATS, TCA_RATE
}


Define Documentation

#define IFA_F_DEPRECATED   0x20
 

Definition at line 304 of file rtnetlink.h.

#define IFA_F_PERMANENT   0x80
 

Definition at line 306 of file rtnetlink.h.

#define IFA_F_SECONDARY   0x01
 

Definition at line 302 of file rtnetlink.h.

Referenced by fib_add_ifaddr(), fib_del_ifaddr(), inet_del_ifa(), and inet_insert_ifa().

#define IFA_F_TENTATIVE   0x40
 

Definition at line 305 of file rtnetlink.h.

#define IFA_MAX   IFA_CACHEINFO
 

Definition at line 298 of file rtnetlink.h.

#define IFA_PAYLOAD n   )     NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
 

Definition at line 316 of file rtnetlink.h.

#define IFA_RTA r   )     ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
 

Definition at line 315 of file rtnetlink.h.

#define IFLA_MAX   IFLA_STATS
 

Definition at line 427 of file rtnetlink.h.

#define IFLA_PAYLOAD n   )     NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
 

Definition at line 430 of file rtnetlink.h.

#define IFLA_RTA r   )     ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
 

Definition at line 429 of file rtnetlink.h.

#define NDA_MAX   NDA_CACHEINFO
 

Definition at line 349 of file rtnetlink.h.

#define NDA_PAYLOAD n   )     NLMSG_PAYLOAD(n,sizeof(struct ndmsg))
 

Definition at line 352 of file rtnetlink.h.

#define NDA_RTA r   )     ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
 

Definition at line 351 of file rtnetlink.h.

#define NTF_PROXY   0x08
 

Definition at line 358 of file rtnetlink.h.

#define NTF_ROUTER   0x80
 

Definition at line 359 of file rtnetlink.h.

Referenced by ndisc_rcv(), and ndisc_router_discovery().

#define NUD_DELAY   0x08
 

Definition at line 368 of file rtnetlink.h.

Referenced by __neigh_event_send(), neigh_timer_handler(), and rt6_best_dflt().

#define NUD_FAILED   0x20
 

Definition at line 370 of file rtnetlink.h.

Referenced by __neigh_event_send(), arp_req_delete(), neigh_periodic_timer(), and neigh_timer_handler().

#define NUD_INCOMPLETE   0x01
 

Definition at line 365 of file rtnetlink.h.

Referenced by __neigh_event_send(), and neigh_forced_gc().

#define NUD_NOARP   0x40
 

Definition at line 373 of file rtnetlink.h.

Referenced by arp_constructor(), arp_req_delete(), ndisc_constructor(), neigh_ifdown(), neigh_sync(), and neigh_update().

#define NUD_NONE   0x00
 

Definition at line 375 of file rtnetlink.h.

Referenced by fib_detect_death(), hostess_neigh_setup(), neigh_alloc(), neigh_ifdown(), sealevel_neigh_setup(), and shaper_neigh_setup().

#define NUD_PERMANENT   0x80
 

Definition at line 374 of file rtnetlink.h.

Referenced by arp_req_set(), arp_state_to_flags(), neigh_forced_gc(), neigh_periodic_timer(), neigh_sync(), and neigh_update().

#define NUD_PROBE   0x10
 

Definition at line 369 of file rtnetlink.h.

Referenced by __neigh_event_send(), and neigh_timer_handler().

#define NUD_REACHABLE   0x02
 

Definition at line 366 of file rtnetlink.h.

Referenced by arp_rcv(), fib_detect_death(), ndisc_recv_na(), neigh_periodic_timer(), neigh_sync(), neigh_timer_handler(), and rt6_best_dflt().

#define NUD_STALE   0x04
 

Definition at line 367 of file rtnetlink.h.

Referenced by __neigh_event_send(), arp_rcv(), arp_req_set(), ndisc_recv_na(), ndisc_router_discovery(), ndisc_update(), neigh_event_ns(), neigh_periodic_timer(), neigh_sync(), neigh_update(), and rt6_best_dflt().

#define RT_TABLE_MAX   RT_TABLE_LOCAL
 

Definition at line 183 of file rtnetlink.h.

Referenced by fib_empty_table(), and fib_flush().

#define RTA_ALIGN len   )     ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
 

Definition at line 69 of file rtnetlink.h.

Referenced by fib_convert_rtentry().

#define RTA_ALIGNTO   4
 

Definition at line 68 of file rtnetlink.h.

#define RTA_DATA rta   )     ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
 

Definition at line 76 of file rtnetlink.h.

Referenced by cbq_change_class(), cbq_init(), csz_change(), csz_init(), fib_convert_rtentry(), fib_create_info(), fib_nh_match(), fifo_init(), fw_change(), inet_rtm_delrule(), inet_rtm_newrule(), prio_tune(), qdisc_get_rtab(), qdisc_new_estimator(), red_init(), route4_change(), rsvp_change(), sfq_change(), tbf_change(), tcf_police_locate(), u32_change(), and u32_set_parms().

#define RTA_LENGTH len   )     (RTA_ALIGN(sizeof(struct rtattr)) + (len))
 

Definition at line 74 of file rtnetlink.h.

Referenced by fib_convert_rtentry(), fifo_init(), prio_tune(), and sfq_change().

#define RTA_MAX   RTA_CACHEINFO
 

Definition at line 206 of file rtnetlink.h.

#define RTA_NEXT rta,
attrlen   ) 
 

Value:

((attrlen) -= RTA_ALIGN((rta)->rta_len), \
                                 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))

Definition at line 72 of file rtnetlink.h.

Referenced by fib_create_info(), and rtattr_parse().

#define RTA_OK rta,
len   ) 
 

Value:

((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
                         (rta)->rta_len <= (len))

Definition at line 70 of file rtnetlink.h.

Referenced by fib_create_info(), and rtattr_parse().

#define RTA_PAYLOAD rta   )     ((int)((rta)->rta_len) - RTA_LENGTH(0))
 

Definition at line 77 of file rtnetlink.h.

Referenced by cbq_change_class(), cbq_init(), csz_change(), csz_init(), fib_create_info(), fib_nh_match(), fw_change(), inet_rtm_newrule(), qdisc_get_rtab(), qdisc_new_estimator(), red_init(), route4_change(), rsvp_change(), tbf_change(), tcf_police_locate(), and u32_change().

#define RTA_SPACE len   )     RTA_ALIGN(RTA_LENGTH(len))
 

Definition at line 75 of file rtnetlink.h.

#define RTATTR_MAX   RTA_MAX
 

Definition at line 494 of file rtnetlink.h.

#define RTAX_MAX   RTAX_CWND
 

Definition at line 270 of file rtnetlink.h.

#define RTM_BASE   0x10
 

Definition at line 18 of file rtnetlink.h.

Referenced by __initfunc().

#define RTM_DELADDR   (RTM_BASE+5)
 

Definition at line 25 of file rtnetlink.h.

Referenced by addrconf_ifdown(), inet_del_ifa(), ipv6_del_addr(), and ipv6_ifa_notify().

#define RTM_DELLINK   (RTM_BASE+1)
 

Definition at line 21 of file rtnetlink.h.

#define RTM_DELNEIGH   (RTM_BASE+13)
 

Definition at line 33 of file rtnetlink.h.

#define RTM_DELQDISC   (RTM_BASE+21)
 

Definition at line 41 of file rtnetlink.h.

#define RTM_DELROUTE   (RTM_BASE+9)
 

Definition at line 29 of file rtnetlink.h.

Referenced by fib6_del_route(), fib_convert_rtentry(), fib_del_ifaddr(), fn_hash_delete(), and fn_hash_insert().

#define RTM_DELRULE   (RTM_BASE+17)
 

Definition at line 37 of file rtnetlink.h.

#define RTM_DELTCLASS   (RTM_BASE+25)
 

Definition at line 45 of file rtnetlink.h.

#define RTM_DELTFILTER   (RTM_BASE+29)
 

Definition at line 49 of file rtnetlink.h.

Referenced by __initfunc().

#define RTM_F_CLONED   0x200
 

Definition at line 170 of file rtnetlink.h.

#define RTM_F_EQUALIZE   0x400
 

Definition at line 171 of file rtnetlink.h.

#define RTM_F_NOTIFY   0x100
 

Definition at line 169 of file rtnetlink.h.

#define RTM_GETADDR   (RTM_BASE+6)
 

Definition at line 26 of file rtnetlink.h.

#define RTM_GETLINK   (RTM_BASE+2)
 

Definition at line 22 of file rtnetlink.h.

#define RTM_GETNEIGH   (RTM_BASE+14)
 

Definition at line 34 of file rtnetlink.h.

#define RTM_GETQDISC   (RTM_BASE+22)
 

Definition at line 42 of file rtnetlink.h.

#define RTM_GETROUTE   (RTM_BASE+10)
 

Definition at line 30 of file rtnetlink.h.

#define RTM_GETRULE   (RTM_BASE+18)
 

Definition at line 38 of file rtnetlink.h.

#define RTM_GETTCLASS   (RTM_BASE+26)
 

Definition at line 46 of file rtnetlink.h.

#define RTM_GETTFILTER   (RTM_BASE+30)
 

Definition at line 50 of file rtnetlink.h.

Referenced by __initfunc().

#define RTM_MAX   (RTM_BASE+31)
 

Definition at line 52 of file rtnetlink.h.

#define RTM_NEWADDR   (RTM_BASE+4)
 

Definition at line 24 of file rtnetlink.h.

Referenced by addrconf_dad_completed(), addrconf_prefix_rcv(), inet_insert_ifa(), init_loopback(), ipv6_ifa_notify(), and sit_add_v4_addrs().

#define RTM_NEWLINK   (RTM_BASE+0)
 

Definition at line 20 of file rtnetlink.h.

#define RTM_NEWNEIGH   (RTM_BASE+12)
 

Definition at line 32 of file rtnetlink.h.

#define RTM_NEWQDISC   (RTM_BASE+20)
 

Definition at line 40 of file rtnetlink.h.

#define RTM_NEWROUTE   (RTM_BASE+8)
 

Definition at line 28 of file rtnetlink.h.

Referenced by fib6_add_rt2node(), fib_add_ifaddr(), fib_convert_rtentry(), fib_magic(), and fn_hash_insert().

#define RTM_NEWRULE   (RTM_BASE+16)
 

Definition at line 36 of file rtnetlink.h.

#define RTM_NEWTCLASS   (RTM_BASE+24)
 

Definition at line 44 of file rtnetlink.h.

#define RTM_NEWTFILTER   (RTM_BASE+28)
 

Definition at line 48 of file rtnetlink.h.

Referenced by __initfunc().

#define RTM_PAYLOAD n   )     NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
 

Definition at line 209 of file rtnetlink.h.

#define RTM_RTA r   )     ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
 

Definition at line 208 of file rtnetlink.h.

#define RTMGRP_IPV4_IFADDR   0x10
 

Definition at line 503 of file rtnetlink.h.

#define RTMGRP_IPV4_MROUTE   0x20
 

Definition at line 504 of file rtnetlink.h.

#define RTMGRP_IPV4_ROUTE   0x40
 

Definition at line 505 of file rtnetlink.h.

#define RTMGRP_IPV6_IFADDR   0x100
 

Definition at line 507 of file rtnetlink.h.

#define RTMGRP_IPV6_MROUTE   0x200
 

Definition at line 508 of file rtnetlink.h.

#define RTMGRP_IPV6_ROUTE   0x400
 

Definition at line 509 of file rtnetlink.h.

#define RTMGRP_LINK   1
 

Definition at line 498 of file rtnetlink.h.

#define RTMGRP_NEIGH   4
 

Definition at line 500 of file rtnetlink.h.

#define RTMGRP_NOTIFY   2
 

Definition at line 499 of file rtnetlink.h.

#define RTMGRP_TC   8
 

Definition at line 501 of file rtnetlink.h.

#define RTN_MAX   RTN_XRESOLVE
 

Definition at line 121 of file rtnetlink.h.

#define RTNH_ALIGN len   )     ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) )
 

Definition at line 237 of file rtnetlink.h.

#define RTNH_ALIGNTO   4
 

Definition at line 236 of file rtnetlink.h.

#define RTNH_DATA rtnh   )     ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
 

Definition at line 243 of file rtnetlink.h.

Referenced by fib_nh_match().

#define RTNH_F_DEAD   1
 

Definition at line 230 of file rtnetlink.h.

Referenced by fib_find_info(), fib_semantic_match(), fib_sync_down(), fn_flush_list(), ip_fib_check_default(), and nh_comp().

#define RTNH_F_ONLINK   4
 

Definition at line 232 of file rtnetlink.h.

Referenced by fib_check_nh().

#define RTNH_F_PERVASIVE   2
 

Definition at line 231 of file rtnetlink.h.

Referenced by fib_check_nh().

#define RTNH_LENGTH len   )     (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
 

Definition at line 241 of file rtnetlink.h.

#define RTNH_NEXT rtnh   )     ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
 

Definition at line 240 of file rtnetlink.h.

Referenced by fib_nh_match().

#define RTNH_OK rtnh,
len   ) 
 

Value:

((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
                           ((int)(rtnh)->rtnh_len) <= (len))

Definition at line 238 of file rtnetlink.h.

#define RTNH_SPACE len   )     RTNH_ALIGN(RTNH_LENGTH(len))
 

Definition at line 242 of file rtnetlink.h.

#define RTNL_DEBUG   1
 

Definition at line 9 of file rtnetlink.h.

#define RTPROT_BIRD   12
 

Definition at line 144 of file rtnetlink.h.

#define RTPROT_BOOT   3
 

Definition at line 130 of file rtnetlink.h.

Referenced by fib_convert_rtentry().

#define RTPROT_GATED   8
 

Definition at line 140 of file rtnetlink.h.

#define RTPROT_KERNEL   2
 

Definition at line 129 of file rtnetlink.h.

Referenced by fib_magic().

#define RTPROT_MRT   10
 

Definition at line 142 of file rtnetlink.h.

#define RTPROT_RA   9
 

Definition at line 141 of file rtnetlink.h.

#define RTPROT_REDIRECT   1
 

Definition at line 127 of file rtnetlink.h.

#define RTPROT_STATIC   4
 

Definition at line 131 of file rtnetlink.h.

#define RTPROT_UNSPEC   0
 

Definition at line 126 of file rtnetlink.h.

#define RTPROT_ZEBRA   11
 

Definition at line 143 of file rtnetlink.h.

#define TCA_MAX   TCA_RATE
 

Definition at line 486 of file rtnetlink.h.

#define TCA_PAYLOAD n   )     NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
 

Definition at line 489 of file rtnetlink.h.

#define TCA_RTA r   )     ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
 

Definition at line 488 of file rtnetlink.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
RTN_UNSPEC 
RTN_UNICAST 
RTN_LOCAL 
RTN_BROADCAST 
RTN_ANYCAST 
RTN_MULTICAST 
RTN_BLACKHOLE 
RTN_UNREACHABLE 
RTN_PROHIBIT 
RTN_THROW 
RTN_NAT 
RTN_XRESOLVE 

Definition at line 103 of file rtnetlink.h.

anonymous enum
 

Enumeration values:
RTAX_UNSPEC 
RTAX_LOCK 
RTAX_MTU 
RTAX_WINDOW 
RTAX_RTT 
RTAX_HOPS 
RTAX_SSTHRESH