Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fib_rules.h File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/fib_rules.h>
#include <net/flow.h>
#include <net/rtnetlink.h>

Go to the source code of this file.

Data Structures

struct  fib_rule
 
struct  fib_lookup_arg
 
struct  fib_rules_ops
 

Macros

#define FIB_LOOKUP_NOREF   1
 
#define FRA_GENERIC_POLICY
 

Functions

struct fib_rules_opsfib_rules_register (const struct fib_rules_ops *, struct net *)
 
void fib_rules_unregister (struct fib_rules_ops *)
 
int fib_rules_lookup (struct fib_rules_ops *, struct flowi *, int flags, struct fib_lookup_arg *)
 
int fib_default_rule_add (struct fib_rules_ops *, u32 pref, u32 table, u32 flags)
 
u32 fib_default_rule_pref (struct fib_rules_ops *ops)
 

Macro Definition Documentation

#define FIB_LOOKUP_NOREF   1

Definition at line 35 of file fib_rules.h.

#define FRA_GENERIC_POLICY
Value:
[FRA_IIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \
[FRA_OIFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, \
[FRA_PRIORITY] = { .type = NLA_U32 }, \
[FRA_FWMARK] = { .type = NLA_U32 }, \
[FRA_FWMASK] = { .type = NLA_U32 }, \
[FRA_TABLE] = { .type = NLA_U32 }, \
[FRA_GOTO] = { .type = NLA_U32 }

Definition at line 76 of file fib_rules.h.

Function Documentation

int fib_default_rule_add ( struct fib_rules_ops ,
u32  pref,
u32  table,
u32  flags 
)

Definition at line 20 of file fib_rules.c.

u32 fib_default_rule_pref ( struct fib_rules_ops ops)

Definition at line 43 of file fib_rules.c.

int fib_rules_lookup ( struct fib_rules_ops ,
struct flowi ,
int  flags,
struct fib_lookup_arg  
)

Definition at line 201 of file fib_rules.c.

struct fib_rules_ops* fib_rules_register ( const struct fib_rules_ops ,
struct net  
)
read

Definition at line 126 of file fib_rules.c.

void fib_rules_unregister ( struct fib_rules_ops )

Definition at line 169 of file fib_rules.c.