Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
fib_semantics.c File Reference
#include <asm/uaccess.h>
#include <linux/bitops.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/jiffies.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/errno.h>
#include <linux/in.h>
#include <linux/inet.h>
#include <linux/inetdevice.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/proc_fs.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <net/arp.h>
#include <net/ip.h>
#include <net/protocol.h>
#include <net/route.h>
#include <net/tcp.h>
#include <net/sock.h>
#include <net/ip_fib.h>
#include <net/netlink.h>
#include <net/nexthop.h>
#include "fib_lookup.h"

Go to the source code of this file.

Macros

#define DEVINDEX_HASHBITS   8
 
#define DEVINDEX_HASHSIZE   (1U << DEVINDEX_HASHBITS)
 
#define for_nexthops(fi)
 
#define change_nexthops(fi)
 
#define endfor_nexthops(fi)   }
 

Functions

void free_fib_info (struct fib_info *fi)
 
void fib_release_info (struct fib_info *fi)
 
int ip_fib_check_default (__be32 gw, struct net_device *dev)
 
void rtmsg_fib (int event, __be32 key, struct fib_alias *fa, int dst_len, u32 tb_id, struct nl_info *info, unsigned int nlm_flags)
 
struct fib_aliasfib_find_alias (struct list_head *fah, u8 tos, u32 prio)
 
int fib_detect_death (struct fib_info *fi, int order, struct fib_info **last_resort, int *last_idx, int dflt)
 
int fib_nh_match (struct fib_config *cfg, struct fib_info *fi)
 
__be32 fib_info_update_nh_saddr (struct net *net, struct fib_nh *nh)
 
struct fib_infofib_create_info (struct fib_config *cfg)
 
int fib_dump_info (struct sk_buff *skb, u32 portid, u32 seq, int event, u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, struct fib_info *fi, unsigned int flags)
 
int fib_sync_down_addr (struct net *net, __be32 local)
 
int fib_sync_down_dev (struct net_device *dev, int force)
 
void fib_select_default (struct fib_result *res)
 

Variables

struct fib_prop fib_props [RTN_MAX+1]
 

Macro Definition Documentation

#define change_nexthops (   fi)
Value:
{ \
int nhsel; \
struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
for (nhsel = 0; nhsel < 1; nhsel++)

Definition at line 82 of file fib_semantics.c.

#define DEVINDEX_HASHBITS   8

Definition at line 54 of file fib_semantics.c.

#define DEVINDEX_HASHSIZE   (1U << DEVINDEX_HASHBITS)

Definition at line 55 of file fib_semantics.c.

#define endfor_nexthops (   fi)    }

Definition at line 89 of file fib_semantics.c.

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

Definition at line 78 of file fib_semantics.c.

Function Documentation

struct fib_info* fib_create_info ( struct fib_config cfg)
read

Definition at line 775 of file fib_semantics.c.

int fib_detect_death ( struct fib_info fi,
int  order,
struct fib_info **  last_resort,
int last_idx,
int  dflt 
)

Definition at line 430 of file fib_semantics.c.

int fib_dump_info ( struct sk_buff skb,
u32  portid,
u32  seq,
int  event,
u32  tb_id,
u8  type,
__be32  dst,
int  dst_len,
u8  tos,
struct fib_info fi,
unsigned int  flags 
)

Definition at line 996 of file fib_semantics.c.

struct fib_alias* fib_find_alias ( struct list_head fah,
u8  tos,
u32  prio 
)
read

Definition at line 415 of file fib_semantics.c.

__be32 fib_info_update_nh_saddr ( struct net net,
struct fib_nh nh 
)

Definition at line 765 of file fib_semantics.c.

int fib_nh_match ( struct fib_config cfg,
struct fib_info fi 
)

Definition at line 504 of file fib_semantics.c.

void fib_release_info ( struct fib_info fi)

Definition at line 235 of file fib_semantics.c.

void fib_select_default ( struct fib_result res)

Definition at line 1169 of file fib_semantics.c.

int fib_sync_down_addr ( struct net net,
__be32  local 
)

Definition at line 1094 of file fib_semantics.c.

int fib_sync_down_dev ( struct net_device dev,
int  force 
)

Definition at line 1116 of file fib_semantics.c.

void free_fib_info ( struct fib_info fi)

Definition at line 219 of file fib_semantics.c.

int ip_fib_check_default ( __be32  gw,
struct net_device dev 
)

Definition at line 331 of file fib_semantics.c.

void rtmsg_fib ( int  event,
__be32  key,
struct fib_alias fa,
int  dst_len,
u32  tb_id,
struct nl_info info,
unsigned int  nlm_flags 
)

Definition at line 383 of file fib_semantics.c.

Variable Documentation

struct fib_prop fib_props[RTN_MAX+1]

Definition at line 92 of file fib_semantics.c.