Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
route.h File Reference
#include <net/dst.h>
#include <net/inetpeer.h>
#include <net/flow.h>
#include <net/inet_sock.h>
#include <linux/in_route.h>
#include <linux/rtnetlink.h>
#include <linux/rcupdate.h>
#include <linux/route.h>
#include <linux/ip.h>
#include <linux/cache.h>
#include <linux/security.h>

Go to the source code of this file.

Data Structures

struct  rtable
 
struct  ip_rt_acct
 
struct  rt_cache_stat
 

Macros

#define RTO_ONLINK   0x01
 
#define RT_CONN_FLAGS(sk)   (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE))
 
#define IPTOS_RT_MASK   (IPTOS_TOS_MASK & ~3)
 

Functions

int ip_rt_init (void)
 
void rt_cache_flush (struct net *net)
 
void rt_flush_dev (struct net_device *dev)
 
struct rtable__ip_route_output_key (struct net *, struct flowi4 *flp)
 
struct rtableip_route_output_flow (struct net *, struct flowi4 *flp, struct sock *sk)
 
struct dst_entryipv4_blackhole_route (struct net *net, struct dst_entry *dst_orig)
 
int ip_route_input_noref (struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin)
 
void ipv4_update_pmtu (struct sk_buff *skb, struct net *net, u32 mtu, int oif, u32 mark, u8 protocol, int flow_flags)
 
void ipv4_sk_update_pmtu (struct sk_buff *skb, struct sock *sk, u32 mtu)
 
void ipv4_redirect (struct sk_buff *skb, struct net *net, int oif, u32 mark, u8 protocol, int flow_flags)
 
void ipv4_sk_redirect (struct sk_buff *skb, struct sock *sk)
 
void ip_rt_send_redirect (struct sk_buff *skb)
 
unsigned int inet_addr_type (struct net *net, __be32 addr)
 
unsigned int inet_dev_addr_type (struct net *net, const struct net_device *dev, __be32 addr)
 
void ip_rt_multicast_event (struct in_device *)
 
int ip_rt_ioctl (struct net *, unsigned int cmd, void __user *arg)
 
void ip_rt_get_source (u8 *src, struct sk_buff *skb, struct rtable *rt)
 
int ip_rt_dump (struct sk_buff *skb, struct netlink_callback *cb)
 
void fib_add_ifaddr (struct in_ifaddr *)
 
void fib_del_ifaddr (struct in_ifaddr *, struct in_ifaddr *)
 

Variables

struct ip_rt_acct __percpuip_rt_acct
 
const __u8 ip_tos2prio [16]
 
int sysctl_ip_default_ttl
 

Macro Definition Documentation

#define IPTOS_RT_MASK   (IPTOS_TOS_MASK & ~3)

Definition at line 207 of file route.h.

#define RT_CONN_FLAGS (   sk)    (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE))

Definition at line 41 of file route.h.

#define RTO_ONLINK   0x01

Definition at line 39 of file route.h.

Function Documentation

struct rtable* __ip_route_output_key ( struct net ,
struct flowi4 flp 
)
read

Definition at line 1883 of file route.c.

void fib_add_ifaddr ( struct in_ifaddr *  )

Definition at line 737 of file fib_frontend.c.

void fib_del_ifaddr ( struct in_ifaddr *  ,
struct in_ifaddr *   
)

Definition at line 783 of file fib_frontend.c.

unsigned int inet_addr_type ( struct net net,
__be32  addr 
)

Definition at line 185 of file fib_frontend.c.

unsigned int inet_dev_addr_type ( struct net net,
const struct net_device dev,
__be32  addr 
)

Definition at line 191 of file fib_frontend.c.

int ip_route_input_noref ( struct sk_buff skb,
__be32  dst,
__be32  src,
u8  tos,
struct net_device devin 
)

Definition at line 1711 of file route.c.

struct rtable* ip_route_output_flow ( struct net ,
struct flowi4 flp,
struct sock sk 
)
read

Definition at line 2141 of file route.c.

int ip_rt_dump ( struct sk_buff skb,
struct netlink_callback cb 
)

Definition at line 2346 of file route.c.

void ip_rt_get_source ( u8 src,
struct sk_buff skb,
struct rtable rt 
)

Definition at line 1059 of file route.c.

int ip_rt_init ( void  )

Definition at line 2571 of file route.c.

int ip_rt_ioctl ( struct net ,
unsigned int  cmd,
void __user arg 
)

Definition at line 482 of file fib_frontend.c.

void ip_rt_multicast_event ( struct in_device *  )

Definition at line 2351 of file route.c.

void ip_rt_send_redirect ( struct sk_buff skb)

Definition at line 785 of file route.c.

struct dst_entry* ipv4_blackhole_route ( struct net net,
struct dst_entry dst_orig 
)
read

Definition at line 2104 of file route.c.

void ipv4_redirect ( struct sk_buff skb,
struct net net,
int  oif,
u32  mark,
u8  protocol,
int  flow_flags 
)

Definition at line 980 of file route.c.

void ipv4_sk_redirect ( struct sk_buff skb,
struct sock sk 
)

Definition at line 997 of file route.c.

void ipv4_sk_update_pmtu ( struct sk_buff skb,
struct sock sk,
u32  mtu 
)

Definition at line 965 of file route.c.

void ipv4_update_pmtu ( struct sk_buff skb,
struct net net,
u32  mtu,
int  oif,
u32  mark,
u8  protocol,
int  flow_flags 
)

Definition at line 948 of file route.c.

void rt_cache_flush ( struct net net)

Definition at line 445 of file route.c.

void rt_flush_dev ( struct net_device dev)

Definition at line 1243 of file route.c.

Variable Documentation

const __u8 ip_tos2prio[16]

Definition at line 182 of file route.c.

int sysctl_ip_default_ttl