Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dn_fib.c File Reference
#include <linux/string.h>
#include <linux/net.h>
#include <linux/socket.h>
#include <linux/slab.h>
#include <linux/sockios.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/proc_fs.h>
#include <linux/netdevice.h>
#include <linux/timer.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <asm/uaccess.h>
#include <net/neighbour.h>
#include <net/dst.h>
#include <net/flow.h>
#include <net/fib_rules.h>
#include <net/dn.h>
#include <net/dn_route.h>
#include <net/dn_fib.h>
#include <net/dn_neigh.h>
#include <net/dn_dev.h>

Go to the source code of this file.

Macros

#define RT_MIN_TABLE   1
 
#define for_fib_info()
 
#define endfor_fib_info()   }
 
#define for_nexthops(fi)
 
#define change_nexthops(fi)
 
#define endfor_nexthops(fi)   }
 

Functions

void dn_fib_free_info (struct dn_fib_info *fi)
 
void dn_fib_release_info (struct dn_fib_info *fi)
 
__le16 dn_fib_get_attr16 (struct rtattr *attr, int attrlen, int type)
 
struct dn_fib_infodn_fib_create_info (const struct rtmsg *r, struct dn_kern_rta *rta, const struct nlmsghdr *nlh, int *errp)
 
int dn_fib_semantic_match (int type, struct dn_fib_info *fi, const struct flowidn *fld, struct dn_fib_res *res)
 
void dn_fib_select_multipath (const struct flowidn *fld, struct dn_fib_res *res)
 
void __exit dn_fib_cleanup (void)
 
void __init dn_fib_init (void)
 

Macro Definition Documentation

#define change_nexthops (   fi)
Value:
{ int nhsel; struct dn_fib_nh *nh;\
for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)

Definition at line 54 of file dn_fib.c.

#define endfor_fib_info ( )    }

Definition at line 49 of file dn_fib.c.

#define endfor_nexthops (   fi)    }

Definition at line 57 of file dn_fib.c.

#define for_fib_info ( )
Value:
{ struct dn_fib_info *fi;\
for(fi = dn_fib_info_list; fi; fi = fi->fib_next)

Definition at line 47 of file dn_fib.c.

#define for_nexthops (   fi)
Value:
{ int nhsel; const struct dn_fib_nh *nh;\
for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)

Definition at line 51 of file dn_fib.c.

#define RT_MIN_TABLE   1

Definition at line 45 of file dn_fib.c.

Function Documentation

void __exit dn_fib_cleanup ( void  )

Definition at line 759 of file dn_fib.c.

struct dn_fib_info* dn_fib_create_info ( const struct rtmsg r,
struct dn_kern_rta rta,
const struct nlmsghdr nlh,
int errp 
)
read

Definition at line 271 of file dn_fib.c.

void dn_fib_free_info ( struct dn_fib_info fi)

Definition at line 85 of file dn_fib.c.

__le16 dn_fib_get_attr16 ( struct rtattr attr,
int  attrlen,
int  type 
)

Definition at line 148 of file dn_fib.c.

void __init dn_fib_init ( void  )

Definition at line 768 of file dn_fib.c.

void dn_fib_release_info ( struct dn_fib_info fi)

Definition at line 100 of file dn_fib.c.

void dn_fib_select_multipath ( const struct flowidn fld,
struct dn_fib_res res 
)

Definition at line 450 of file dn_fib.c.

int dn_fib_semantic_match ( int  type,
struct dn_fib_info fi,
const struct flowidn fld,
struct dn_fib_res res 
)

Definition at line 408 of file dn_fib.c.

Variable Documentation

int error

Definition at line 65 of file dn_fib.c.

Definition at line 66 of file dn_fib.c.