Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ip6_fib.c File Reference
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/net.h>
#include <linux/route.h>
#include <linux/netdevice.h>
#include <linux/in6.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <net/ipv6.h>
#include <net/ndisc.h>
#include <net/addrconf.h>
#include <net/ip6_fib.h>
#include <net/ip6_route.h>

Go to the source code of this file.

Data Structures

struct  fib6_cleaner_t
 
struct  lookup_args
 
struct  fib6_gc_args
 

Macros

#define pr_fmt(fmt)   "IPv6: " fmt
 
#define RT6_DEBUG   2
 
#define RT6_TRACE(x...)   do { ; } while (0)
 
#define FWS_INIT   FWS_L
 
#define FOR_WALKERS(w)   list_for_each_entry(w, &fib6_walkers, lh)
 
#define BITOP_BE32_SWIZZLE   0
 

Enumerations

enum  fib_walk_state_t { FWS_L, FWS_R, FWS_C, FWS_U }
 

Functions

struct fib6_tablefib6_new_table (struct net *net, u32 id)
 
struct fib6_tablefib6_get_table (struct net *net, u32 id)
 
struct dst_entryfib6_rule_lookup (struct net *net, struct flowi6 *fl6, int flags, pol_lookup_t lookup)
 
void fib6_force_start_gc (struct net *net)
 
int fib6_add (struct fib6_node *root, struct rt6_info *rt, struct nl_info *info)
 
struct fib6_nodefib6_lookup (struct fib6_node *root, const struct in6_addr *daddr, const struct in6_addr *saddr)
 
struct fib6_nodefib6_locate (struct fib6_node *root, const struct in6_addr *daddr, int dst_len, const struct in6_addr *saddr, int src_len)
 
int fib6_del (struct rt6_info *rt, struct nl_info *info)
 
void fib6_clean_all_ro (struct net *net, int(*func)(struct rt6_info *, void *arg), int prune, void *arg)
 
void fib6_clean_all (struct net *net, int(*func)(struct rt6_info *, void *arg), int prune, void *arg)
 
void fib6_run_gc (unsigned long expires, struct net *net)
 
int __init fib6_init (void)
 
void fib6_gc_cleanup (void)
 

Macro Definition Documentation

#define BITOP_BE32_SWIZZLE   0

Definition at line 133 of file ip6_fib.c.

#define FOR_WALKERS (   w)    list_for_each_entry(w, &fib6_walkers, lh)

Definition at line 97 of file ip6_fib.c.

#define FWS_INIT   FWS_L

Definition at line 75 of file ip6_fib.c.

#define pr_fmt (   fmt)    "IPv6: " fmt

Definition at line 22 of file ip6_fib.c.

#define RT6_DEBUG   2

Definition at line 41 of file ip6_fib.c.

#define RT6_TRACE (   x...)    do { ; } while (0)

Definition at line 46 of file ip6_fib.c.

Enumeration Type Documentation

Enumerator:
FWS_L 
FWS_R 
FWS_C 
FWS_U 

Definition at line 51 of file ip6_fib.c.

Function Documentation

int fib6_add ( struct fib6_node root,
struct rt6_info rt,
struct nl_info info 
)

Definition at line 758 of file ip6_fib.c.

void fib6_clean_all ( struct net net,
int(*)(struct rt6_info *, void *arg func,
int  prune,
void arg 
)

Definition at line 1482 of file ip6_fib.c.

void fib6_clean_all_ro ( struct net net,
int(*)(struct rt6_info *, void *arg func,
int  prune,
void arg 
)

Definition at line 1462 of file ip6_fib.c.

int fib6_del ( struct rt6_info rt,
struct nl_info info 
)

Definition at line 1240 of file ip6_fib.c.

void fib6_force_start_gc ( struct net net)

Definition at line 745 of file ip6_fib.c.

void fib6_gc_cleanup ( void  )

Definition at line 1711 of file ip6_fib.c.

struct fib6_table* fib6_get_table ( struct net net,
u32  id 
)
read

Definition at line 258 of file ip6_fib.c.

int __init fib6_init ( void  )

Definition at line 1682 of file ip6_fib.c.

struct fib6_node* fib6_locate ( struct fib6_node root,
const struct in6_addr daddr,
int  dst_len,
const struct in6_addr saddr,
int  src_len 
)
read

Definition at line 1025 of file ip6_fib.c.

struct fib6_node* fib6_lookup ( struct fib6_node root,
const struct in6_addr daddr,
const struct in6_addr saddr 
)
read

Definition at line 962 of file ip6_fib.c.

struct fib6_table* fib6_new_table ( struct net net,
u32  id 
)
read

Definition at line 253 of file ip6_fib.c.

struct dst_entry* fib6_rule_lookup ( struct net net,
struct flowi6 fl6,
int  flags,
pol_lookup_t  lookup 
)
read

Definition at line 263 of file ip6_fib.c.

void fib6_run_gc ( unsigned long  expires,
struct net net 
)

Definition at line 1575 of file ip6_fib.c.