Back to index

glibc  2.9
Classes | Defines
route.h File Reference
#include <features.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <bits/wordsize.h>

Go to the source code of this file.

Classes

struct  rtentry
struct  in6_rtmsg

Defines

#define rt_mss   rt_mtu
#define RTF_UP   0x0001 /* Route usable. */
#define RTF_GATEWAY   0x0002 /* Destination is a gateway. */
#define RTF_HOST   0x0004 /* Host entry (net otherwise). */
#define RTF_REINSTATE   0x0008 /* Reinstate route after timeout. */
#define RTF_DYNAMIC   0x0010 /* Created dyn. (by redirect). */
#define RTF_MODIFIED   0x0020 /* Modified dyn. (by redirect). */
#define RTF_MTU   0x0040 /* Specific MTU for this route. */
#define RTF_MSS   RTF_MTU /* Compatibility. */
#define RTF_WINDOW   0x0080 /* Per route window clamping. */
#define RTF_IRTT   0x0100 /* Initial round trip time. */
#define RTF_REJECT   0x0200 /* Reject route. */
#define RTF_STATIC   0x0400 /* Manually injected route. */
#define RTF_XRESOLVE   0x0800 /* External resolver. */
#define RTF_NOFORWARD   0x1000 /* Forwarding inhibited. */
#define RTF_THROW   0x2000 /* Go to next class. */
#define RTF_NOPMTUDISC   0x4000 /* Do not send packets with DF. */
#define RTF_DEFAULT   0x00010000 /* default - learned via ND */
#define RTF_ALLONLINK   0x00020000 /* fallback, no routers on link */
#define RTF_ADDRCONF   0x00040000 /* addrconf route - RA */
#define RTF_LINKRT   0x00100000 /* link specific - device match */
#define RTF_NONEXTHOP   0x00200000 /* route with no nexthop */
#define RTF_CACHE   0x01000000 /* cache entry */
#define RTF_FLOW   0x02000000 /* flow significant route */
#define RTF_POLICY   0x04000000 /* policy route */
#define RTCF_VALVE   0x00200000
#define RTCF_MASQ   0x00400000
#define RTCF_NAT   0x00800000
#define RTCF_DOREDIRECT   0x01000000
#define RTCF_LOG   0x02000000
#define RTCF_DIRECTSRC   0x04000000
#define RTF_LOCAL   0x80000000
#define RTF_INTERFACE   0x40000000
#define RTF_MULTICAST   0x20000000
#define RTF_BROADCAST   0x10000000
#define RTF_NAT   0x08000000
#define RTF_ADDRCLASSMASK   0xF8000000
#define RT_ADDRCLASS(flags)   ((__u_int32_t) flags >> 23)
#define RT_TOS(tos)   ((tos) & IPTOS_TOS_MASK)
#define RT_LOCALADDR(flags)
#define RT_CLASS_UNSPEC   0
#define RT_CLASS_DEFAULT   253
#define RT_CLASS_MAIN   254
#define RT_CLASS_LOCAL   255
#define RT_CLASS_MAX   255
#define RTMSG_ACK   NLMSG_ACK
#define RTMSG_OVERRUN   NLMSG_OVERRUN
#define RTMSG_NEWDEVICE   0x11
#define RTMSG_DELDEVICE   0x12
#define RTMSG_NEWROUTE   0x21
#define RTMSG_DELROUTE   0x22
#define RTMSG_NEWRULE   0x31
#define RTMSG_DELRULE   0x32
#define RTMSG_CONTROL   0x40
#define RTMSG_AR_FAILED   0x51 /* Address Resolution failed. */

Class Documentation

struct rtentry

Definition at line 32 of file route.h.

Class Members
unsigned char rt_class
char * rt_dev
unsigned short int rt_flags
unsigned short int rt_irtt
short int rt_metric
unsigned long int rt_mtu
unsigned long int rt_pad1
short int rt_pad2
unsigned long int rt_pad3
short int rt_pad4
unsigned char rt_tos
unsigned long int rt_window
struct in6_rtmsg

Definition at line 54 of file route.h.

Class Members
u_int16_t rtmsg_dst_len
u_int32_t rtmsg_flags
int rtmsg_ifindex
unsigned long int rtmsg_info
u_int32_t rtmsg_metric
u_int16_t rtmsg_src_len
u_int32_t rtmsg_type

Define Documentation

#define RT_ADDRCLASS (   flags)    ((__u_int32_t) flags >> 23)

Definition at line 117 of file route.h.

#define RT_CLASS_DEFAULT   253

Definition at line 125 of file route.h.

#define RT_CLASS_LOCAL   255

Definition at line 128 of file route.h.

#define RT_CLASS_MAIN   254

Definition at line 127 of file route.h.

#define RT_CLASS_MAX   255

Definition at line 129 of file route.h.

#define RT_CLASS_UNSPEC   0

Definition at line 124 of file route.h.

#define RT_LOCALADDR (   flags)
Value:

Definition at line 121 of file route.h.

#define rt_mss   rt_mtu

Definition at line 55 of file route.h.

#define RT_TOS (   tos)    ((tos) & IPTOS_TOS_MASK)

Definition at line 119 of file route.h.

#define RTCF_DIRECTSRC   0x04000000

Definition at line 108 of file route.h.

#define RTCF_DOREDIRECT   0x01000000

Definition at line 106 of file route.h.

#define RTCF_LOG   0x02000000

Definition at line 107 of file route.h.

#define RTCF_MASQ   0x00400000

Definition at line 104 of file route.h.

#define RTCF_NAT   0x00800000

Definition at line 105 of file route.h.

#define RTCF_VALVE   0x00200000

Definition at line 103 of file route.h.

#define RTF_ADDRCLASSMASK   0xF8000000

Definition at line 116 of file route.h.

#define RTF_ADDRCONF   0x00040000 /* addrconf route - RA */

Definition at line 94 of file route.h.

#define RTF_ALLONLINK   0x00020000 /* fallback, no routers on link */

Definition at line 93 of file route.h.

#define RTF_BROADCAST   0x10000000

Definition at line 113 of file route.h.

#define RTF_CACHE   0x01000000 /* cache entry */

Definition at line 99 of file route.h.

#define RTF_DEFAULT   0x00010000 /* default - learned via ND */

Definition at line 92 of file route.h.

#define RTF_DYNAMIC   0x0010 /* Created dyn. (by redirect). */

Definition at line 78 of file route.h.

#define RTF_FLOW   0x02000000 /* flow significant route */

Definition at line 100 of file route.h.

#define RTF_GATEWAY   0x0002 /* Destination is a gateway. */

Definition at line 74 of file route.h.

#define RTF_HOST   0x0004 /* Host entry (net otherwise). */

Definition at line 76 of file route.h.

#define RTF_INTERFACE   0x40000000

Definition at line 111 of file route.h.

#define RTF_IRTT   0x0100 /* Initial round trip time. */

Definition at line 83 of file route.h.

#define RTF_LINKRT   0x00100000 /* link specific - device match */

Definition at line 96 of file route.h.

#define RTF_LOCAL   0x80000000

Definition at line 110 of file route.h.

#define RTF_MODIFIED   0x0020 /* Modified dyn. (by redirect). */

Definition at line 79 of file route.h.

#define RTF_MSS   RTF_MTU /* Compatibility. */

Definition at line 81 of file route.h.

#define RTF_MTU   0x0040 /* Specific MTU for this route. */

Definition at line 80 of file route.h.

#define RTF_MULTICAST   0x20000000

Definition at line 112 of file route.h.

#define RTF_NAT   0x08000000

Definition at line 114 of file route.h.

#define RTF_NOFORWARD   0x1000 /* Forwarding inhibited. */

Definition at line 87 of file route.h.

#define RTF_NONEXTHOP   0x00200000 /* route with no nexthop */

Definition at line 97 of file route.h.

#define RTF_NOPMTUDISC   0x4000 /* Do not send packets with DF. */

Definition at line 89 of file route.h.

#define RTF_POLICY   0x04000000 /* policy route */

Definition at line 101 of file route.h.

#define RTF_REINSTATE   0x0008 /* Reinstate route after timeout. */

Definition at line 77 of file route.h.

#define RTF_REJECT   0x0200 /* Reject route. */

Definition at line 84 of file route.h.

#define RTF_STATIC   0x0400 /* Manually injected route. */

Definition at line 85 of file route.h.

#define RTF_THROW   0x2000 /* Go to next class. */

Definition at line 88 of file route.h.

#define RTF_UP   0x0001 /* Route usable. */

Definition at line 73 of file route.h.

#define RTF_WINDOW   0x0080 /* Per route window clamping. */

Definition at line 82 of file route.h.

#define RTF_XRESOLVE   0x0800 /* External resolver. */

Definition at line 86 of file route.h.

#define RTMSG_ACK   NLMSG_ACK

Definition at line 132 of file route.h.

#define RTMSG_AR_FAILED   0x51 /* Address Resolution failed. */

Definition at line 143 of file route.h.

#define RTMSG_CONTROL   0x40

Definition at line 141 of file route.h.

#define RTMSG_DELDEVICE   0x12

Definition at line 136 of file route.h.

#define RTMSG_DELROUTE   0x22

Definition at line 138 of file route.h.

#define RTMSG_DELRULE   0x32

Definition at line 140 of file route.h.

#define RTMSG_NEWDEVICE   0x11

Definition at line 135 of file route.h.

#define RTMSG_NEWROUTE   0x21

Definition at line 137 of file route.h.

#define RTMSG_NEWRULE   0x31

Definition at line 139 of file route.h.

#define RTMSG_OVERRUN   NLMSG_OVERRUN

Definition at line 133 of file route.h.