Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
rtnetlink.h File Reference
#include <linux/types.h>
#include <linux/netlink.h>
#include <linux/if_link.h>
#include <linux/if_addr.h>
#include <linux/neighbour.h>

Go to the source code of this file.

Data Structures

struct  rtattr
 
struct  rtmsg
 
struct  rtnexthop
 
struct  rta_cacheinfo
 
struct  rta_session
 
struct  rtgenmsg
 
struct  ifinfomsg
 
struct  prefixmsg
 
struct  prefix_cacheinfo
 
struct  tcmsg
 
struct  nduseroptmsg
 
struct  tcamsg
 

Macros

#define RTNL_FAMILY_IPMR   128
 
#define RTNL_FAMILY_IP6MR   129
 
#define RTNL_FAMILY_MAX   129
 
#define RTM_BASE   RTM_BASE
 
#define RTM_NEWLINK   RTM_NEWLINK
 
#define RTM_DELLINK   RTM_DELLINK
 
#define RTM_GETLINK   RTM_GETLINK
 
#define RTM_SETLINK   RTM_SETLINK
 
#define RTM_NEWADDR   RTM_NEWADDR
 
#define RTM_DELADDR   RTM_DELADDR
 
#define RTM_GETADDR   RTM_GETADDR
 
#define RTM_NEWROUTE   RTM_NEWROUTE
 
#define RTM_DELROUTE   RTM_DELROUTE
 
#define RTM_GETROUTE   RTM_GETROUTE
 
#define RTM_NEWNEIGH   RTM_NEWNEIGH
 
#define RTM_DELNEIGH   RTM_DELNEIGH
 
#define RTM_GETNEIGH   RTM_GETNEIGH
 
#define RTM_NEWRULE   RTM_NEWRULE
 
#define RTM_DELRULE   RTM_DELRULE
 
#define RTM_GETRULE   RTM_GETRULE
 
#define RTM_NEWQDISC   RTM_NEWQDISC
 
#define RTM_DELQDISC   RTM_DELQDISC
 
#define RTM_GETQDISC   RTM_GETQDISC
 
#define RTM_NEWTCLASS   RTM_NEWTCLASS
 
#define RTM_DELTCLASS   RTM_DELTCLASS
 
#define RTM_GETTCLASS   RTM_GETTCLASS
 
#define RTM_NEWTFILTER   RTM_NEWTFILTER
 
#define RTM_DELTFILTER   RTM_DELTFILTER
 
#define RTM_GETTFILTER   RTM_GETTFILTER
 
#define RTM_NEWACTION   RTM_NEWACTION
 
#define RTM_DELACTION   RTM_DELACTION
 
#define RTM_GETACTION   RTM_GETACTION
 
#define RTM_NEWPREFIX   RTM_NEWPREFIX
 
#define RTM_GETMULTICAST   RTM_GETMULTICAST
 
#define RTM_GETANYCAST   RTM_GETANYCAST
 
#define RTM_NEWNEIGHTBL   RTM_NEWNEIGHTBL
 
#define RTM_GETNEIGHTBL   RTM_GETNEIGHTBL
 
#define RTM_SETNEIGHTBL   RTM_SETNEIGHTBL
 
#define RTM_NEWNDUSEROPT   RTM_NEWNDUSEROPT
 
#define RTM_NEWADDRLABEL   RTM_NEWADDRLABEL
 
#define RTM_DELADDRLABEL   RTM_DELADDRLABEL
 
#define RTM_GETADDRLABEL   RTM_GETADDRLABEL
 
#define RTM_GETDCB   RTM_GETDCB
 
#define RTM_SETDCB   RTM_SETDCB
 
#define RTM_MAX   (((__RTM_MAX + 3) & ~3) - 1)
 
#define RTM_NR_MSGTYPES   (RTM_MAX + 1 - RTM_BASE)
 
#define RTM_NR_FAMILIES   (RTM_NR_MSGTYPES >> 2)
 
#define RTM_FAM(cmd)   (((cmd) - RTM_BASE) >> 2)
 
#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_MAX - 1)
 
#define RTPROT_UNSPEC   0
 
#define RTPROT_REDIRECT
 
#define RTPROT_KERNEL   2 /* Route installed by kernel */
 
#define RTPROT_BOOT   3 /* Route installed during boot */
 
#define RTPROT_STATIC   4 /* Route installed by administrator */
 
#define RTPROT_GATED   8 /* Apparently, GateD */
 
#define RTPROT_RA   9 /* RDISC/ND router advertisements */
 
#define RTPROT_MRT   10 /* Merit MRT */
 
#define RTPROT_ZEBRA   11 /* Zebra */
 
#define RTPROT_BIRD   12 /* BIRD */
 
#define RTPROT_DNROUTED   13 /* DECnet routing daemon */
 
#define RTPROT_XORP   14 /* XORP */
 
#define RTPROT_NTK   15 /* Netsukuku */
 
#define RTPROT_DHCP   16 /* DHCP client */
 
#define RTM_F_NOTIFY   0x100 /* Notify user of route change */
 
#define RTM_F_CLONED   0x200 /* This route is cloned */
 
#define RTM_F_EQUALIZE   0x400 /* Multipath equalizer: NI */
 
#define RTM_F_PREFIX   0x800 /* Prefix addresses */
 
#define RTA_MAX   (__RTA_MAX - 1)
 
#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 /* Nexthop is dead (used by multipath) */
 
#define RTNH_F_PERVASIVE   2 /* Do recursive gateway lookup */
 
#define RTNH_F_ONLINK   4 /* Gateway is forced on link */
 
#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 RTNETLINK_HAVE_PEERINFO   1
 
#define RTAX_UNSPEC   RTAX_UNSPEC
 
#define RTAX_LOCK   RTAX_LOCK
 
#define RTAX_MTU   RTAX_MTU
 
#define RTAX_WINDOW   RTAX_WINDOW
 
#define RTAX_RTT   RTAX_RTT
 
#define RTAX_RTTVAR   RTAX_RTTVAR
 
#define RTAX_SSTHRESH   RTAX_SSTHRESH
 
#define RTAX_CWND   RTAX_CWND
 
#define RTAX_ADVMSS   RTAX_ADVMSS
 
#define RTAX_REORDERING   RTAX_REORDERING
 
#define RTAX_HOPLIMIT   RTAX_HOPLIMIT
 
#define RTAX_INITCWND   RTAX_INITCWND
 
#define RTAX_FEATURES   RTAX_FEATURES
 
#define RTAX_RTO_MIN   RTAX_RTO_MIN
 
#define RTAX_INITRWND   RTAX_INITRWND
 
#define RTAX_MAX   (__RTAX_MAX - 1)
 
#define RTAX_FEATURE_ECN   0x00000001
 
#define RTAX_FEATURE_SACK   0x00000002
 
#define RTAX_FEATURE_TIMESTAMP   0x00000004
 
#define RTAX_FEATURE_ALLFRAG   0x00000008
 
#define PREFIX_MAX   (__PREFIX_MAX - 1)
 
#define TCA_MAX   (__TCA_MAX - 1)
 
#define TCA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
 
#define TCA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
 
#define NDUSEROPT_MAX   (__NDUSEROPT_MAX - 1)
 
#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_IPV4_RULE   0x80
 
#define RTMGRP_IPV6_IFADDR   0x100
 
#define RTMGRP_IPV6_MROUTE   0x200
 
#define RTMGRP_IPV6_ROUTE   0x400
 
#define RTMGRP_IPV6_IFINFO   0x800
 
#define RTMGRP_DECnet_IFADDR   0x1000
 
#define RTMGRP_DECnet_ROUTE   0x4000
 
#define RTMGRP_IPV6_PREFIX   0x20000
 
#define RTNLGRP_NONE   RTNLGRP_NONE
 
#define RTNLGRP_LINK   RTNLGRP_LINK
 
#define RTNLGRP_NOTIFY   RTNLGRP_NOTIFY
 
#define RTNLGRP_NEIGH   RTNLGRP_NEIGH
 
#define RTNLGRP_TC   RTNLGRP_TC
 
#define RTNLGRP_IPV4_IFADDR   RTNLGRP_IPV4_IFADDR
 
#define RTNLGRP_IPV4_MROUTE   RTNLGRP_IPV4_MROUTE
 
#define RTNLGRP_IPV4_ROUTE   RTNLGRP_IPV4_ROUTE
 
#define RTNLGRP_IPV4_RULE   RTNLGRP_IPV4_RULE
 
#define RTNLGRP_IPV6_IFADDR   RTNLGRP_IPV6_IFADDR
 
#define RTNLGRP_IPV6_MROUTE   RTNLGRP_IPV6_MROUTE
 
#define RTNLGRP_IPV6_ROUTE   RTNLGRP_IPV6_ROUTE
 
#define RTNLGRP_IPV6_IFINFO   RTNLGRP_IPV6_IFINFO
 
#define RTNLGRP_DECnet_IFADDR   RTNLGRP_DECnet_IFADDR
 
#define RTNLGRP_DECnet_ROUTE   RTNLGRP_DECnet_ROUTE
 
#define RTNLGRP_DECnet_RULE   RTNLGRP_DECnet_RULE
 
#define RTNLGRP_IPV6_PREFIX   RTNLGRP_IPV6_PREFIX
 
#define RTNLGRP_IPV6_RULE   RTNLGRP_IPV6_RULE
 
#define RTNLGRP_ND_USEROPT   RTNLGRP_ND_USEROPT
 
#define RTNLGRP_PHONET_IFADDR   RTNLGRP_PHONET_IFADDR
 
#define RTNLGRP_PHONET_ROUTE   RTNLGRP_PHONET_ROUTE
 
#define RTNLGRP_DCB   RTNLGRP_DCB
 
#define RTNLGRP_MAX   (__RTNLGRP_MAX - 1)
 
#define TA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
 
#define TA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct tcamsg))
 
#define TCA_ACT_TAB   1 /* attr type must be >=1 */
 
#define TCAA_MAX   1
 
#define RTEXT_FILTER_VF   (1 << 0)
 

Enumerations

enum  {
  RTM_BASE = 16, RTM_BASE = 16, RTM_NEWLINK = 16, RTM_NEWLINK = 16,
  RTM_DELLINK, RTM_DELLINK, RTM_GETLINK, RTM_GETLINK,
  RTM_SETLINK, RTM_SETLINK, RTM_NEWADDR = 20, RTM_NEWADDR = 20,
  RTM_DELADDR, RTM_DELADDR, RTM_GETADDR, RTM_GETADDR,
  RTM_NEWROUTE = 24, RTM_NEWROUTE = 24, RTM_DELROUTE, RTM_DELROUTE,
  RTM_GETROUTE, RTM_GETROUTE, RTM_NEWNEIGH = 28, RTM_NEWNEIGH = 28,
  RTM_DELNEIGH, RTM_DELNEIGH, RTM_GETNEIGH, RTM_GETNEIGH,
  RTM_NEWRULE = 32, RTM_NEWRULE = 32, RTM_DELRULE, RTM_DELRULE,
  RTM_GETRULE, RTM_GETRULE, RTM_NEWQDISC = 36, RTM_NEWQDISC = 36,
  RTM_DELQDISC, RTM_DELQDISC, RTM_GETQDISC, RTM_GETQDISC,
  RTM_NEWTCLASS = 40, RTM_NEWTCLASS = 40, RTM_DELTCLASS, RTM_DELTCLASS,
  RTM_GETTCLASS, RTM_GETTCLASS, RTM_NEWTFILTER = 44, RTM_NEWTFILTER = 44,
  RTM_DELTFILTER, RTM_DELTFILTER, RTM_GETTFILTER, RTM_GETTFILTER,
  RTM_NEWACTION = 48, RTM_NEWACTION = 48, RTM_DELACTION, RTM_DELACTION,
  RTM_GETACTION, RTM_GETACTION, RTM_NEWPREFIX = 52, RTM_NEWPREFIX = 52,
  RTM_GETMULTICAST = 58, RTM_GETMULTICAST = 58, RTM_GETANYCAST = 62, RTM_GETANYCAST = 62,
  RTM_NEWNEIGHTBL = 64, RTM_NEWNEIGHTBL = 64, RTM_GETNEIGHTBL = 66, RTM_GETNEIGHTBL = 66,
  RTM_SETNEIGHTBL, RTM_SETNEIGHTBL, RTM_NEWNDUSEROPT = 68, RTM_NEWNDUSEROPT = 68,
  RTM_NEWADDRLABEL = 72, RTM_NEWADDRLABEL = 72, RTM_DELADDRLABEL, RTM_DELADDRLABEL,
  RTM_GETADDRLABEL, RTM_GETADDRLABEL, RTM_GETDCB = 78, RTM_GETDCB = 78,
  RTM_SETDCB, RTM_SETDCB, __RTM_MAX
}
 
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,
  __RTN_MAX
}
 
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_COMPAT =252, RT_TABLE_DEFAULT =253, RT_TABLE_MAIN =254,
  RT_TABLE_LOCAL =255, RT_TABLE_MAX =0xFFFFFFFF
}
 
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, RTA_SESSION, RTA_MP_ALGO, RTA_TABLE,
  RTA_MARK, __RTA_MAX
}
 
enum  {
  RTAX_UNSPEC, RTAX_UNSPEC, RTAX_LOCK, RTAX_LOCK,
  RTAX_MTU, RTAX_MTU, RTAX_WINDOW, RTAX_WINDOW,
  RTAX_RTT, RTAX_RTT, RTAX_RTTVAR, RTAX_RTTVAR,
  RTAX_SSTHRESH, RTAX_SSTHRESH, RTAX_CWND, RTAX_CWND,
  RTAX_ADVMSS, RTAX_ADVMSS, RTAX_REORDERING, RTAX_REORDERING,
  RTAX_HOPLIMIT, RTAX_HOPLIMIT, RTAX_INITCWND, RTAX_INITCWND,
  RTAX_FEATURES, RTAX_FEATURES, RTAX_RTO_MIN, RTAX_RTO_MIN,
  RTAX_INITRWND, RTAX_INITRWND, __RTAX_MAX
}
 
enum  { PREFIX_UNSPEC, PREFIX_ADDRESS, PREFIX_CACHEINFO, __PREFIX_MAX }
 
enum  {
  TCA_UNSPEC, TCA_KIND, TCA_OPTIONS, TCA_STATS,
  TCA_XSTATS, TCA_RATE, TCA_FCNT, TCA_STATS2,
  TCA_STAB, __TCA_MAX
}
 
enum  { NDUSEROPT_UNSPEC, NDUSEROPT_SRCADDR, __NDUSEROPT_MAX }
 
enum  rtnetlink_groups {
  RTNLGRP_NONE, RTNLGRP_NONE, RTNLGRP_LINK, RTNLGRP_LINK,
  RTNLGRP_NOTIFY, RTNLGRP_NOTIFY, RTNLGRP_NEIGH, RTNLGRP_NEIGH,
  RTNLGRP_TC, RTNLGRP_TC, RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV4_IFADDR,
  RTNLGRP_IPV4_MROUTE, RTNLGRP_IPV4_MROUTE, RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV4_ROUTE,
  RTNLGRP_IPV4_RULE, RTNLGRP_IPV4_RULE, RTNLGRP_IPV6_IFADDR, RTNLGRP_IPV6_IFADDR,
  RTNLGRP_IPV6_MROUTE, RTNLGRP_IPV6_MROUTE, RTNLGRP_IPV6_ROUTE, RTNLGRP_IPV6_ROUTE,
  RTNLGRP_IPV6_IFINFO, RTNLGRP_IPV6_IFINFO, RTNLGRP_DECnet_IFADDR, RTNLGRP_DECnet_IFADDR,
  RTNLGRP_NOP2, RTNLGRP_DECnet_ROUTE, RTNLGRP_DECnet_ROUTE, RTNLGRP_DECnet_RULE,
  RTNLGRP_DECnet_RULE, RTNLGRP_NOP4, RTNLGRP_IPV6_PREFIX, RTNLGRP_IPV6_PREFIX,
  RTNLGRP_IPV6_RULE, RTNLGRP_IPV6_RULE, RTNLGRP_ND_USEROPT, RTNLGRP_ND_USEROPT,
  RTNLGRP_PHONET_IFADDR, RTNLGRP_PHONET_IFADDR, RTNLGRP_PHONET_ROUTE, RTNLGRP_PHONET_ROUTE,
  RTNLGRP_DCB, RTNLGRP_DCB, __RTNLGRP_MAX
}
 

Macro Definition Documentation

#define NDUSEROPT_MAX   (__NDUSEROPT_MAX - 1)

Definition at line 516 of file rtnetlink.h.

#define PREFIX_MAX   (__PREFIX_MAX - 1)

Definition at line 454 of file rtnetlink.h.

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

Definition at line 145 of file rtnetlink.h.

#define RTA_ALIGNTO   4

Definition at line 144 of file rtnetlink.h.

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

Definition at line 153 of file rtnetlink.h.

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

Definition at line 151 of file rtnetlink.h.

#define RTA_MAX   (__RTA_MAX - 1)

Definition at line 288 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 149 of file rtnetlink.h.

#define RTA_OK (   rta,
  len 
)
Value:
((len) >= (int)sizeof(struct rtattr) && \
(rta)->rta_len >= sizeof(struct rtattr) && \
(rta)->rta_len <= (len))

Definition at line 146 of file rtnetlink.h.

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

Definition at line 154 of file rtnetlink.h.

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

Definition at line 152 of file rtnetlink.h.

#define RTAX_ADVMSS   RTAX_ADVMSS

Definition at line 361 of file rtnetlink.h.

#define RTAX_CWND   RTAX_CWND

Definition at line 359 of file rtnetlink.h.

#define RTAX_FEATURE_ALLFRAG   0x00000008

Definition at line 382 of file rtnetlink.h.

#define RTAX_FEATURE_ECN   0x00000001

Definition at line 379 of file rtnetlink.h.

#define RTAX_FEATURE_SACK   0x00000002

Definition at line 380 of file rtnetlink.h.

#define RTAX_FEATURE_TIMESTAMP   0x00000004

Definition at line 381 of file rtnetlink.h.

#define RTAX_FEATURES   RTAX_FEATURES

Definition at line 369 of file rtnetlink.h.

#define RTAX_HOPLIMIT   RTAX_HOPLIMIT

Definition at line 365 of file rtnetlink.h.

#define RTAX_INITCWND   RTAX_INITCWND

Definition at line 367 of file rtnetlink.h.

#define RTAX_INITRWND   RTAX_INITRWND

Definition at line 373 of file rtnetlink.h.

#define RTAX_LOCK   RTAX_LOCK

Definition at line 347 of file rtnetlink.h.

#define RTAX_MAX   (__RTAX_MAX - 1)

Definition at line 377 of file rtnetlink.h.

#define RTAX_MTU   RTAX_MTU

Definition at line 349 of file rtnetlink.h.

#define RTAX_REORDERING   RTAX_REORDERING

Definition at line 363 of file rtnetlink.h.

#define RTAX_RTO_MIN   RTAX_RTO_MIN

Definition at line 371 of file rtnetlink.h.

#define RTAX_RTT   RTAX_RTT

Definition at line 353 of file rtnetlink.h.

#define RTAX_RTTVAR   RTAX_RTTVAR

Definition at line 355 of file rtnetlink.h.

#define RTAX_SSTHRESH   RTAX_SSTHRESH

Definition at line 357 of file rtnetlink.h.

#define RTAX_UNSPEC   RTAX_UNSPEC

Definition at line 345 of file rtnetlink.h.

#define RTAX_WINDOW   RTAX_WINDOW

Definition at line 351 of file rtnetlink.h.

#define RTEXT_FILTER_VF   (1 << 0)

Definition at line 605 of file rtnetlink.h.

#define RTM_BASE   RTM_BASE

Definition at line 25 of file rtnetlink.h.

#define RTM_DELACTION   RTM_DELACTION

Definition at line 88 of file rtnetlink.h.

#define RTM_DELADDR   RTM_DELADDR

Definition at line 39 of file rtnetlink.h.

#define RTM_DELADDRLABEL   RTM_DELADDRLABEL

Definition at line 114 of file rtnetlink.h.

#define RTM_DELLINK   RTM_DELLINK

Definition at line 30 of file rtnetlink.h.

#define RTM_DELNEIGH   RTM_DELNEIGH

Definition at line 53 of file rtnetlink.h.

#define RTM_DELQDISC   RTM_DELQDISC

Definition at line 67 of file rtnetlink.h.

#define RTM_DELROUTE   RTM_DELROUTE

Definition at line 46 of file rtnetlink.h.

#define RTM_DELRULE   RTM_DELRULE

Definition at line 60 of file rtnetlink.h.

#define RTM_DELTCLASS   RTM_DELTCLASS

Definition at line 74 of file rtnetlink.h.

#define RTM_DELTFILTER   RTM_DELTFILTER

Definition at line 81 of file rtnetlink.h.

#define RTM_F_CLONED   0x200 /* This route is cloned */

Definition at line 248 of file rtnetlink.h.

#define RTM_F_EQUALIZE   0x400 /* Multipath equalizer: NI */

Definition at line 249 of file rtnetlink.h.

#define RTM_F_NOTIFY   0x100 /* Notify user of route change */

Definition at line 247 of file rtnetlink.h.

#define RTM_F_PREFIX   0x800 /* Prefix addresses */

Definition at line 250 of file rtnetlink.h.

#define RTM_FAM (   cmd)    (((cmd) - RTM_BASE) >> 2)

Definition at line 129 of file rtnetlink.h.

#define RTM_GETACTION   RTM_GETACTION

Definition at line 90 of file rtnetlink.h.

#define RTM_GETADDR   RTM_GETADDR

Definition at line 41 of file rtnetlink.h.

#define RTM_GETADDRLABEL   RTM_GETADDRLABEL

Definition at line 116 of file rtnetlink.h.

#define RTM_GETANYCAST   RTM_GETANYCAST

Definition at line 99 of file rtnetlink.h.

#define RTM_GETDCB   RTM_GETDCB

Definition at line 119 of file rtnetlink.h.

#define RTM_GETLINK   RTM_GETLINK

Definition at line 32 of file rtnetlink.h.

#define RTM_GETMULTICAST   RTM_GETMULTICAST

Definition at line 96 of file rtnetlink.h.

#define RTM_GETNEIGH   RTM_GETNEIGH

Definition at line 55 of file rtnetlink.h.

#define RTM_GETNEIGHTBL   RTM_GETNEIGHTBL

Definition at line 104 of file rtnetlink.h.

#define RTM_GETQDISC   RTM_GETQDISC

Definition at line 69 of file rtnetlink.h.

#define RTM_GETROUTE   RTM_GETROUTE

Definition at line 48 of file rtnetlink.h.

#define RTM_GETRULE   RTM_GETRULE

Definition at line 62 of file rtnetlink.h.

#define RTM_GETTCLASS   RTM_GETTCLASS

Definition at line 76 of file rtnetlink.h.

#define RTM_GETTFILTER   RTM_GETTFILTER

Definition at line 83 of file rtnetlink.h.

#define RTM_MAX   (((__RTM_MAX + 3) & ~3) - 1)

Definition at line 124 of file rtnetlink.h.

#define RTM_NEWACTION   RTM_NEWACTION

Definition at line 86 of file rtnetlink.h.

#define RTM_NEWADDR   RTM_NEWADDR

Definition at line 37 of file rtnetlink.h.

#define RTM_NEWADDRLABEL   RTM_NEWADDRLABEL

Definition at line 112 of file rtnetlink.h.

#define RTM_NEWLINK   RTM_NEWLINK

Definition at line 28 of file rtnetlink.h.

#define RTM_NEWNDUSEROPT   RTM_NEWNDUSEROPT

Definition at line 109 of file rtnetlink.h.

#define RTM_NEWNEIGH   RTM_NEWNEIGH

Definition at line 51 of file rtnetlink.h.

#define RTM_NEWNEIGHTBL   RTM_NEWNEIGHTBL

Definition at line 102 of file rtnetlink.h.

#define RTM_NEWPREFIX   RTM_NEWPREFIX

Definition at line 93 of file rtnetlink.h.

#define RTM_NEWQDISC   RTM_NEWQDISC

Definition at line 65 of file rtnetlink.h.

#define RTM_NEWROUTE   RTM_NEWROUTE

Definition at line 44 of file rtnetlink.h.

#define RTM_NEWRULE   RTM_NEWRULE

Definition at line 58 of file rtnetlink.h.

#define RTM_NEWTCLASS   RTM_NEWTCLASS

Definition at line 72 of file rtnetlink.h.

#define RTM_NEWTFILTER   RTM_NEWTFILTER

Definition at line 79 of file rtnetlink.h.

#define RTM_NR_FAMILIES   (RTM_NR_MSGTYPES >> 2)

Definition at line 128 of file rtnetlink.h.

#define RTM_NR_MSGTYPES   (RTM_MAX + 1 - RTM_BASE)

Definition at line 127 of file rtnetlink.h.

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

Definition at line 291 of file rtnetlink.h.

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

Definition at line 290 of file rtnetlink.h.

#define RTM_SETDCB   RTM_SETDCB

Definition at line 121 of file rtnetlink.h.

#define RTM_SETLINK   RTM_SETLINK

Definition at line 34 of file rtnetlink.h.

#define RTM_SETNEIGHTBL   RTM_SETNEIGHTBL

Definition at line 106 of file rtnetlink.h.

#define RTMGRP_DECnet_IFADDR   0x1000

Definition at line 535 of file rtnetlink.h.

#define RTMGRP_DECnet_ROUTE   0x4000

Definition at line 536 of file rtnetlink.h.

#define RTMGRP_IPV4_IFADDR   0x10

Definition at line 525 of file rtnetlink.h.

#define RTMGRP_IPV4_MROUTE   0x20

Definition at line 526 of file rtnetlink.h.

#define RTMGRP_IPV4_ROUTE   0x40

Definition at line 527 of file rtnetlink.h.

#define RTMGRP_IPV4_RULE   0x80

Definition at line 528 of file rtnetlink.h.

#define RTMGRP_IPV6_IFADDR   0x100

Definition at line 530 of file rtnetlink.h.

#define RTMGRP_IPV6_IFINFO   0x800

Definition at line 533 of file rtnetlink.h.

#define RTMGRP_IPV6_MROUTE   0x200

Definition at line 531 of file rtnetlink.h.

#define RTMGRP_IPV6_PREFIX   0x20000

Definition at line 538 of file rtnetlink.h.

#define RTMGRP_IPV6_ROUTE   0x400

Definition at line 532 of file rtnetlink.h.

#define RTMGRP_LINK   1

Definition at line 520 of file rtnetlink.h.

#define RTMGRP_NEIGH   4

Definition at line 522 of file rtnetlink.h.

#define RTMGRP_NOTIFY   2

Definition at line 521 of file rtnetlink.h.

#define RTMGRP_TC   8

Definition at line 523 of file rtnetlink.h.

#define RTN_MAX   (__RTN_MAX - 1)

Definition at line 197 of file rtnetlink.h.

#define RTNETLINK_HAVE_PEERINFO   1

Definition at line 335 of file rtnetlink.h.

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

Definition at line 318 of file rtnetlink.h.

#define RTNH_ALIGNTO   4

Definition at line 317 of file rtnetlink.h.

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

Definition at line 324 of file rtnetlink.h.

#define RTNH_F_DEAD   1 /* Nexthop is dead (used by multipath) */

Definition at line 311 of file rtnetlink.h.

#define RTNH_F_ONLINK   4 /* Gateway is forced on link */

Definition at line 313 of file rtnetlink.h.

#define RTNH_F_PERVASIVE   2 /* Do recursive gateway lookup */

Definition at line 312 of file rtnetlink.h.

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

Definition at line 322 of file rtnetlink.h.

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

Definition at line 321 of file rtnetlink.h.

#define RTNH_OK (   rtnh,
  len 
)
Value:
((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
((int)(rtnh)->rtnh_len) <= (len))

Definition at line 319 of file rtnetlink.h.

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

Definition at line 323 of file rtnetlink.h.

#define RTNL_FAMILY_IP6MR   129

Definition at line 14 of file rtnetlink.h.

#define RTNL_FAMILY_IPMR   128

Definition at line 13 of file rtnetlink.h.

#define RTNL_FAMILY_MAX   129

Definition at line 15 of file rtnetlink.h.

#define RTNLGRP_DCB   RTNLGRP_DCB

Definition at line 588 of file rtnetlink.h.

#define RTNLGRP_DECnet_IFADDR   RTNLGRP_DECnet_IFADDR

Definition at line 570 of file rtnetlink.h.

#define RTNLGRP_DECnet_ROUTE   RTNLGRP_DECnet_ROUTE

Definition at line 573 of file rtnetlink.h.

#define RTNLGRP_DECnet_RULE   RTNLGRP_DECnet_RULE

Definition at line 575 of file rtnetlink.h.

#define RTNLGRP_IPV4_IFADDR   RTNLGRP_IPV4_IFADDR

Definition at line 554 of file rtnetlink.h.

#define RTNLGRP_IPV4_MROUTE   RTNLGRP_IPV4_MROUTE

Definition at line 556 of file rtnetlink.h.

#define RTNLGRP_IPV4_ROUTE   RTNLGRP_IPV4_ROUTE

Definition at line 558 of file rtnetlink.h.

#define RTNLGRP_IPV4_RULE   RTNLGRP_IPV4_RULE

Definition at line 560 of file rtnetlink.h.

#define RTNLGRP_IPV6_IFADDR   RTNLGRP_IPV6_IFADDR

Definition at line 562 of file rtnetlink.h.

#define RTNLGRP_IPV6_IFINFO   RTNLGRP_IPV6_IFINFO

Definition at line 568 of file rtnetlink.h.

#define RTNLGRP_IPV6_MROUTE   RTNLGRP_IPV6_MROUTE

Definition at line 564 of file rtnetlink.h.

#define RTNLGRP_IPV6_PREFIX   RTNLGRP_IPV6_PREFIX

Definition at line 578 of file rtnetlink.h.

#define RTNLGRP_IPV6_ROUTE   RTNLGRP_IPV6_ROUTE

Definition at line 566 of file rtnetlink.h.

#define RTNLGRP_IPV6_RULE   RTNLGRP_IPV6_RULE

Definition at line 580 of file rtnetlink.h.

#define RTNLGRP_LINK   RTNLGRP_LINK

Definition at line 546 of file rtnetlink.h.

#define RTNLGRP_MAX   (__RTNLGRP_MAX - 1)

Definition at line 591 of file rtnetlink.h.

#define RTNLGRP_ND_USEROPT   RTNLGRP_ND_USEROPT

Definition at line 582 of file rtnetlink.h.

#define RTNLGRP_NEIGH   RTNLGRP_NEIGH

Definition at line 550 of file rtnetlink.h.

#define RTNLGRP_NONE   RTNLGRP_NONE

Definition at line 544 of file rtnetlink.h.

#define RTNLGRP_NOTIFY   RTNLGRP_NOTIFY

Definition at line 548 of file rtnetlink.h.

#define RTNLGRP_PHONET_IFADDR   RTNLGRP_PHONET_IFADDR

Definition at line 584 of file rtnetlink.h.

#define RTNLGRP_PHONET_ROUTE   RTNLGRP_PHONET_ROUTE

Definition at line 586 of file rtnetlink.h.

#define RTNLGRP_TC   RTNLGRP_TC

Definition at line 552 of file rtnetlink.h.

#define RTPROT_BIRD   12 /* BIRD */

Definition at line 219 of file rtnetlink.h.

#define RTPROT_BOOT   3 /* Route installed during boot */

Definition at line 205 of file rtnetlink.h.

#define RTPROT_DHCP   16 /* DHCP client */

Definition at line 223 of file rtnetlink.h.

#define RTPROT_DNROUTED   13 /* DECnet routing daemon */

Definition at line 220 of file rtnetlink.h.

#define RTPROT_GATED   8 /* Apparently, GateD */

Definition at line 215 of file rtnetlink.h.

#define RTPROT_KERNEL   2 /* Route installed by kernel */

Definition at line 204 of file rtnetlink.h.

#define RTPROT_MRT   10 /* Merit MRT */

Definition at line 217 of file rtnetlink.h.

#define RTPROT_NTK   15 /* Netsukuku */

Definition at line 222 of file rtnetlink.h.

#define RTPROT_RA   9 /* RDISC/ND router advertisements */

Definition at line 216 of file rtnetlink.h.

#define RTPROT_REDIRECT
Value:
1 /* Route installed by ICMP redirects;
not used by current IPv4 */

Definition at line 203 of file rtnetlink.h.

#define RTPROT_STATIC   4 /* Route installed by administrator */

Definition at line 206 of file rtnetlink.h.

#define RTPROT_UNSPEC   0

Definition at line 202 of file rtnetlink.h.

#define RTPROT_XORP   14 /* XORP */

Definition at line 221 of file rtnetlink.h.

#define RTPROT_ZEBRA   11 /* Zebra */

Definition at line 218 of file rtnetlink.h.

#define TA_PAYLOAD (   n)    NLMSG_PAYLOAD(n,sizeof(struct tcamsg))

Definition at line 600 of file rtnetlink.h.

#define TA_RTA (   r)    ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))

Definition at line 599 of file rtnetlink.h.

#define TCA_ACT_TAB   1 /* attr type must be >=1 */

Definition at line 601 of file rtnetlink.h.

#define TCA_MAX   (__TCA_MAX - 1)

Definition at line 489 of file rtnetlink.h.

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

Definition at line 492 of file rtnetlink.h.

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

Definition at line 491 of file rtnetlink.h.

#define TCAA_MAX   1

Definition at line 602 of file rtnetlink.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
RTM_BASE 
RTM_BASE 
RTM_NEWLINK 
RTM_NEWLINK 
RTM_DELLINK 
RTM_DELLINK 
RTM_GETLINK 
RTM_GETLINK 
RTM_SETLINK 
RTM_SETLINK 
RTM_NEWADDR 
RTM_NEWADDR 
RTM_DELADDR 
RTM_DELADDR 
RTM_GETADDR 
RTM_GETADDR 
RTM_NEWROUTE 
RTM_NEWROUTE 
RTM_DELROUTE 
RTM_DELROUTE 
RTM_GETROUTE 
RTM_GETROUTE 
RTM_NEWNEIGH 
RTM_NEWNEIGH 
RTM_DELNEIGH 
RTM_DELNEIGH 
RTM_GETNEIGH 
RTM_GETNEIGH 
RTM_NEWRULE 
RTM_NEWRULE 
RTM_DELRULE 
RTM_DELRULE 
RTM_GETRULE 
RTM_GETRULE 
RTM_NEWQDISC 
RTM_NEWQDISC 
RTM_DELQDISC 
RTM_DELQDISC 
RTM_GETQDISC 
RTM_GETQDISC 
RTM_NEWTCLASS 
RTM_NEWTCLASS 
RTM_DELTCLASS 
RTM_DELTCLASS 
RTM_GETTCLASS 
RTM_GETTCLASS 
RTM_NEWTFILTER 
RTM_NEWTFILTER 
RTM_DELTFILTER 
RTM_DELTFILTER 
RTM_GETTFILTER 
RTM_GETTFILTER 
RTM_NEWACTION 
RTM_NEWACTION 
RTM_DELACTION 
RTM_DELACTION 
RTM_GETACTION 
RTM_GETACTION 
RTM_NEWPREFIX 
RTM_NEWPREFIX 
RTM_GETMULTICAST 
RTM_GETMULTICAST 
RTM_GETANYCAST 
RTM_GETANYCAST 
RTM_NEWNEIGHTBL 
RTM_NEWNEIGHTBL 
RTM_GETNEIGHTBL 
RTM_GETNEIGHTBL 
RTM_SETNEIGHTBL 
RTM_SETNEIGHTBL 
RTM_NEWNDUSEROPT 
RTM_NEWNDUSEROPT 
RTM_NEWADDRLABEL 
RTM_NEWADDRLABEL 
RTM_DELADDRLABEL 
RTM_DELADDRLABEL 
RTM_GETADDRLABEL 
RTM_GETADDRLABEL 
RTM_GETDCB 
RTM_GETDCB 
RTM_SETDCB 
RTM_SETDCB 
__RTM_MAX 

Definition at line 23 of file rtnetlink.h.

anonymous enum
Enumerator:
RTN_UNSPEC 
RTN_UNICAST 
RTN_LOCAL 
RTN_BROADCAST 
RTN_ANYCAST 
RTN_MULTICAST 
RTN_BLACKHOLE 
RTN_UNREACHABLE 
RTN_PROHIBIT 
RTN_THROW 
RTN_NAT 
RTN_XRESOLVE 
__RTN_MAX 

Definition at line 179 of file rtnetlink.h.

anonymous enum
Enumerator:
RTAX_UNSPEC 
RTAX_UNSPEC 
RTAX_LOCK 
RTAX_LOCK 
RTAX_MTU 
RTAX_MTU 
RTAX_WINDOW 
RTAX_WINDOW 
RTAX_RTT 
RTAX_RTT 
RTAX_RTTVAR 
RTAX_RTTVAR 
RTAX_SSTHRESH 
RTAX_SSTHRESH 
RTAX_CWND 
RTAX_CWND 
RTAX_ADVMSS 
RTAX_ADVMSS 
RTAX_REORDERING 
RTAX_REORDERING 
RTAX_HOPLIMIT 
RTAX_HOPLIMIT 
RTAX_INITCWND 
RTAX_INITCWND 
RTAX_FEATURES 
RTAX_FEATURES 
RTAX_RTO_MIN 
RTAX_RTO_MIN 
RTAX_INITRWND 
RTAX_INITRWND 
__RTAX_MAX 

Definition at line 343 of file rtnetlink.h.

anonymous enum
Enumerator:
PREFIX_UNSPEC 
PREFIX_ADDRESS 
PREFIX_CACHEINFO 
__PREFIX_MAX 

Definition at line 446 of file rtnetlink.h.

anonymous enum
Enumerator:
TCA_UNSPEC 
TCA_KIND 
TCA_OPTIONS 
TCA_STATS 
TCA_XSTATS 
TCA_RATE 
TCA_FCNT 
TCA_STATS2 
TCA_STAB 
__TCA_MAX 

Definition at line 476 of file rtnetlink.h.

anonymous enum
Enumerator:
NDUSEROPT_UNSPEC 
NDUSEROPT_SRCADDR 
__NDUSEROPT_MAX 

Definition at line 510 of file rtnetlink.h.

enum rt_class_t
Enumerator:
RT_TABLE_UNSPEC 
RT_TABLE_COMPAT 
RT_TABLE_DEFAULT 
RT_TABLE_MAIN 
RT_TABLE_LOCAL 
RT_TABLE_MAX 

Definition at line 254 of file rtnetlink.h.

enum rt_scope_t
Enumerator:
RT_SCOPE_UNIVERSE 
RT_SCOPE_SITE 
RT_SCOPE_LINK 
RT_SCOPE_HOST 
RT_SCOPE_NOWHERE 

Definition at line 236 of file rtnetlink.h.

Enumerator:
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 
RTA_SESSION 
RTA_MP_ALGO 
RTA_TABLE 
RTA_MARK 
__RTA_MAX 

Definition at line 267 of file rtnetlink.h.

Enumerator:
RTNLGRP_NONE 
RTNLGRP_NONE 
RTNLGRP_LINK 
RTNLGRP_LINK 
RTNLGRP_NOTIFY 
RTNLGRP_NOTIFY 
RTNLGRP_NEIGH 
RTNLGRP_NEIGH 
RTNLGRP_TC 
RTNLGRP_TC 
RTNLGRP_IPV4_IFADDR 
RTNLGRP_IPV4_IFADDR 
RTNLGRP_IPV4_MROUTE 
RTNLGRP_IPV4_MROUTE 
RTNLGRP_IPV4_ROUTE 
RTNLGRP_IPV4_ROUTE 
RTNLGRP_IPV4_RULE 
RTNLGRP_IPV4_RULE 
RTNLGRP_IPV6_IFADDR 
RTNLGRP_IPV6_IFADDR 
RTNLGRP_IPV6_MROUTE 
RTNLGRP_IPV6_MROUTE 
RTNLGRP_IPV6_ROUTE 
RTNLGRP_IPV6_ROUTE 
RTNLGRP_IPV6_IFINFO 
RTNLGRP_IPV6_IFINFO 
RTNLGRP_DECnet_IFADDR 
RTNLGRP_DECnet_IFADDR 
RTNLGRP_NOP2 
RTNLGRP_DECnet_ROUTE 
RTNLGRP_DECnet_ROUTE 
RTNLGRP_DECnet_RULE 
RTNLGRP_DECnet_RULE 
RTNLGRP_NOP4 
RTNLGRP_IPV6_PREFIX 
RTNLGRP_IPV6_PREFIX 
RTNLGRP_IPV6_RULE 
RTNLGRP_IPV6_RULE 
RTNLGRP_ND_USEROPT 
RTNLGRP_ND_USEROPT 
RTNLGRP_PHONET_IFADDR 
RTNLGRP_PHONET_IFADDR 
RTNLGRP_PHONET_ROUTE 
RTNLGRP_PHONET_ROUTE 
RTNLGRP_DCB 
RTNLGRP_DCB 
__RTNLGRP_MAX 

Definition at line 542 of file rtnetlink.h.