Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ip6_route.h File Reference
#include <net/flow.h>
#include <net/ip6_fib.h>
#include <net/sock.h>
#include <linux/ip.h>
#include <linux/ipv6.h>

Go to the source code of this file.

Data Structures

struct  route_info
 
struct  rt6_rtnl_dump_arg
 

Macros

#define IP6_RT_PRIO_USER   1024
 
#define IP6_RT_PRIO_ADDRCONF   256
 
#define RT6_LOOKUP_F_IFACE   0x00000001
 
#define RT6_LOOKUP_F_REACHABLE   0x00000002
 
#define RT6_LOOKUP_F_HAS_SADDR   0x00000004
 
#define RT6_LOOKUP_F_SRCPREF_TMP   0x00000008
 
#define RT6_LOOKUP_F_SRCPREF_PUBLIC   0x00000010
 
#define RT6_LOOKUP_F_SRCPREF_COA   0x00000020
 

Functions

void rt6_bind_peer (struct rt6_info *rt, int create)
 
void ip6_route_input (struct sk_buff *skb)
 
struct dst_entryip6_route_output (struct net *net, const struct sock *sk, struct flowi6 *fl6)
 
struct dst_entryip6_route_lookup (struct net *net, struct flowi6 *fl6, int flags)
 
int ip6_route_init (void)
 
void ip6_route_cleanup (void)
 
int ipv6_route_ioctl (struct net *net, unsigned int cmd, void __user *arg)
 
int ip6_route_add (struct fib6_config *cfg)
 
int ip6_ins_rt (struct rt6_info *)
 
int ip6_del_rt (struct rt6_info *)
 
int ip6_route_get_saddr (struct net *net, struct rt6_info *rt, const struct in6_addr *daddr, unsigned int prefs, struct in6_addr *saddr)
 
struct rt6_infort6_lookup (struct net *net, const struct in6_addr *daddr, const struct in6_addr *saddr, int oif, int flags)
 
struct dst_entryicmp6_dst_alloc (struct net_device *dev, struct neighbour *neigh, struct flowi6 *fl6)
 
int icmp6_dst_gc (void)
 
void fib6_force_start_gc (struct net *net)
 
struct rt6_infoaddrconf_dst_alloc (struct inet6_dev *idev, const struct in6_addr *addr, bool anycast)
 
int ip6_dst_hoplimit (struct dst_entry *dst)
 
struct rt6_infort6_get_dflt_router (const struct in6_addr *addr, struct net_device *dev)
 
struct rt6_infort6_add_dflt_router (const struct in6_addr *gwaddr, struct net_device *dev, unsigned int pref)
 
void rt6_purge_dflt_routers (struct net *net)
 
int rt6_route_rcv (struct net_device *dev, u8 *opt, int len, const struct in6_addr *gwaddr)
 
void ip6_update_pmtu (struct sk_buff *skb, struct net *net, __be32 mtu, int oif, u32 mark)
 
void ip6_sk_update_pmtu (struct sk_buff *skb, struct sock *sk, __be32 mtu)
 
void ip6_redirect (struct sk_buff *skb, struct net *net, int oif, u32 mark)
 
void ip6_sk_redirect (struct sk_buff *skb, struct sock *sk)
 
int rt6_dump_route (struct rt6_info *rt, void *p_arg)
 
void rt6_ifdown (struct net *net, struct net_device *dev)
 
void rt6_mtu_change (struct net_device *dev, unsigned int mtu)
 
void rt6_remove_prefsrc (struct inet6_ifaddr *ifp)
 
int ip6_fragment (struct sk_buff *skb, int(*output)(struct sk_buff *))
 

Macro Definition Documentation

#define IP6_RT_PRIO_ADDRCONF   256

Definition at line 5 of file ip6_route.h.

#define IP6_RT_PRIO_USER   1024

Definition at line 4 of file ip6_route.h.

#define RT6_LOOKUP_F_HAS_SADDR   0x00000004

Definition at line 32 of file ip6_route.h.

#define RT6_LOOKUP_F_IFACE   0x00000001

Definition at line 30 of file ip6_route.h.

#define RT6_LOOKUP_F_REACHABLE   0x00000002

Definition at line 31 of file ip6_route.h.

#define RT6_LOOKUP_F_SRCPREF_COA   0x00000020

Definition at line 35 of file ip6_route.h.

#define RT6_LOOKUP_F_SRCPREF_PUBLIC   0x00000010

Definition at line 34 of file ip6_route.h.

#define RT6_LOOKUP_F_SRCPREF_TMP   0x00000008

Definition at line 33 of file ip6_route.h.

Function Documentation

struct rt6_info* addrconf_dst_alloc ( struct inet6_dev idev,
const struct in6_addr addr,
bool  anycast 
)
read

Definition at line 2075 of file route.c.

void fib6_force_start_gc ( struct net net)

Definition at line 745 of file ip6_fib.c.

struct dst_entry* icmp6_dst_alloc ( struct net_device dev,
struct neighbour neigh,
struct flowi6 fl6 
)
read

Definition at line 1198 of file route.c.

int icmp6_dst_gc ( void  )

Definition at line 1250 of file route.c.

int ip6_del_rt ( struct rt6_info )

Definition at line 1611 of file route.c.

int ip6_dst_hoplimit ( struct dst_entry dst)

Definition at line 1325 of file route.c.

int ip6_fragment ( struct sk_buff skb,
int(*)(struct sk_buff *)  output 
)

Definition at line 613 of file ip6_output.c.

int ip6_ins_rt ( struct rt6_info )

Definition at line 765 of file route.c.

void ip6_redirect ( struct sk_buff skb,
struct net net,
int  oif,
u32  mark 
)

Definition at line 1127 of file route.c.

int ip6_route_add ( struct fib6_config cfg)

Definition at line 1348 of file route.c.

void ip6_route_cleanup ( void  )

Definition at line 3105 of file route.c.

int ip6_route_get_saddr ( struct net net,
struct rt6_info rt,
const struct in6_addr daddr,
unsigned int  prefs,
struct in6_addr saddr 
)

Definition at line 2115 of file route.c.

int ip6_route_init ( void  )

Definition at line 3021 of file route.c.

void ip6_route_input ( struct sk_buff skb)

Definition at line 932 of file route.c.

struct dst_entry* ip6_route_lookup ( struct net net,
struct flowi6 fl6,
int  flags 
)
read

Definition at line 713 of file route.c.

struct dst_entry* ip6_route_output ( struct net net,
const struct sock sk,
struct flowi6 fl6 
)
read

Definition at line 955 of file route.c.

void ip6_sk_redirect ( struct sk_buff skb,
struct sock sk 
)

Definition at line 1148 of file route.c.

void ip6_sk_update_pmtu ( struct sk_buff skb,
struct sock sk,
__be32  mtu 
)

Definition at line 1120 of file route.c.

void ip6_update_pmtu ( struct sk_buff skb,
struct net net,
__be32  mtu,
int  oif,
u32  mark 
)

Definition at line 1098 of file route.c.

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

Definition at line 1981 of file route.c.

struct rt6_info* rt6_add_dflt_router ( const struct in6_addr gwaddr,
struct net_device dev,
unsigned int  pref 
)
read

Definition at line 1915 of file route.c.

void rt6_bind_peer ( struct rt6_info rt,
int  create 
)

Definition at line 328 of file route.c.

int rt6_dump_route ( struct rt6_info rt,
void p_arg 
)

Definition at line 2520 of file route.c.

struct rt6_info* rt6_get_dflt_router ( const struct in6_addr addr,
struct net_device dev 
)
read

Definition at line 1893 of file route.c.

void rt6_ifdown ( struct net net,
struct net_device dev 
)

Definition at line 2181 of file route.c.

struct rt6_info* rt6_lookup ( struct net net,
const struct in6_addr daddr,
const struct in6_addr saddr,
int  oif,
int  flags 
)
read

Definition at line 720 of file route.c.

void rt6_mtu_change ( struct net_device dev,
unsigned int  mtu 
)

Definition at line 2236 of file route.c.

void rt6_purge_dflt_routers ( struct net net)

Definition at line 1937 of file route.c.

void rt6_remove_prefsrc ( struct inet6_ifaddr ifp)

Definition at line 2153 of file route.c.

int rt6_route_rcv ( struct net_device dev,
u8 opt,
int  len,
const struct in6_addr gwaddr 
)