Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
xfrm_policy.c File Reference
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/notifier.h>
#include <linux/netdevice.h>
#include <linux/netfilter.h>
#include <linux/module.h>
#include <linux/cache.h>
#include <linux/audit.h>
#include <net/dst.h>
#include <net/flow.h>
#include <net/xfrm.h>
#include <net/ip.h>
#include "xfrm_hash.h"

Go to the source code of this file.

Functions

 DEFINE_MUTEX (xfrm_cfg_mutex)
 
 EXPORT_SYMBOL (xfrm_cfg_mutex)
 
bool xfrm_selector_match (const struct xfrm_selector *sel, const struct flowi *fl, unsigned short family)
 
struct xfrm_policyxfrm_policy_alloc (struct net *net, gfp_t gfp)
 
 EXPORT_SYMBOL (xfrm_policy_alloc)
 
void xfrm_policy_destroy (struct xfrm_policy *policy)
 
 EXPORT_SYMBOL (xfrm_policy_destroy)
 
void xfrm_spd_getinfo (struct net *net, struct xfrmk_spdinfo *si)
 
 EXPORT_SYMBOL (xfrm_spd_getinfo)
 
int xfrm_policy_insert (int dir, struct xfrm_policy *policy, int excl)
 
 EXPORT_SYMBOL (xfrm_policy_insert)
 
struct xfrm_policyxfrm_policy_bysel_ctx (struct net *net, u32 mark, u8 type, int dir, struct xfrm_selector *sel, struct xfrm_sec_ctx *ctx, int delete, int *err)
 
 EXPORT_SYMBOL (xfrm_policy_bysel_ctx)
 
struct xfrm_policyxfrm_policy_byid (struct net *net, u32 mark, u8 type, int dir, u32 id, int delete, int *err)
 
 EXPORT_SYMBOL (xfrm_policy_byid)
 
int xfrm_policy_flush (struct net *net, u8 type, struct xfrm_audit *audit_info)
 
 EXPORT_SYMBOL (xfrm_policy_flush)
 
int xfrm_policy_walk (struct net *net, struct xfrm_policy_walk *walk, int(*func)(struct xfrm_policy *, int, int, void *), void *data)
 
 EXPORT_SYMBOL (xfrm_policy_walk)
 
void xfrm_policy_walk_init (struct xfrm_policy_walk *walk, u8 type)
 
 EXPORT_SYMBOL (xfrm_policy_walk_init)
 
void xfrm_policy_walk_done (struct xfrm_policy_walk *walk)
 
 EXPORT_SYMBOL (xfrm_policy_walk_done)
 
int xfrm_policy_delete (struct xfrm_policy *pol, int dir)
 
 EXPORT_SYMBOL (xfrm_policy_delete)
 
int xfrm_sk_policy_insert (struct sock *sk, int dir, struct xfrm_policy *pol)
 
int __xfrm_sk_clone_policy (struct sock *sk)
 
struct dst_entryxfrm_lookup (struct net *net, struct dst_entry *dst_orig, const struct flowi *fl, struct sock *sk, int flags)
 
 EXPORT_SYMBOL (xfrm_lookup)
 
int __xfrm_decode_session (struct sk_buff *skb, struct flowi *fl, unsigned int family, int reverse)
 
 EXPORT_SYMBOL (__xfrm_decode_session)
 
int __xfrm_policy_check (struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
 
 EXPORT_SYMBOL (__xfrm_policy_check)
 
int __xfrm_route_forward (struct sk_buff *skb, unsigned short family)
 
 EXPORT_SYMBOL (__xfrm_route_forward)
 
void xfrm_dst_ifdown (struct dst_entry *dst, struct net_device *dev)
 
 EXPORT_SYMBOL (xfrm_dst_ifdown)
 
int xfrm_policy_register_afinfo (struct xfrm_policy_afinfo *afinfo)
 
 EXPORT_SYMBOL (xfrm_policy_register_afinfo)
 
int xfrm_policy_unregister_afinfo (struct xfrm_policy_afinfo *afinfo)
 
 EXPORT_SYMBOL (xfrm_policy_unregister_afinfo)
 
void __init xfrm_init (void)
 

Function Documentation

int __xfrm_decode_session ( struct sk_buff skb,
struct flowi fl,
unsigned int  family,
int  reverse 
)

Definition at line 2027 of file xfrm_policy.c.

int __xfrm_policy_check ( struct sock sk,
int  dir,
struct sk_buff skb,
unsigned short  family 
)

Definition at line 2055 of file xfrm_policy.c.

int __xfrm_route_forward ( struct sk_buff skb,
unsigned short  family 
)

Definition at line 2213 of file xfrm_policy.c.

int __xfrm_sk_clone_policy ( struct sock sk)

Definition at line 1160 of file xfrm_policy.c.

DEFINE_MUTEX ( xfrm_cfg_mutex  )
EXPORT_SYMBOL ( xfrm_cfg_mutex  )
EXPORT_SYMBOL ( xfrm_policy_alloc  )
EXPORT_SYMBOL ( xfrm_policy_destroy  )
EXPORT_SYMBOL ( xfrm_spd_getinfo  )
EXPORT_SYMBOL ( xfrm_policy_insert  )
EXPORT_SYMBOL ( xfrm_policy_bysel_ctx  )
EXPORT_SYMBOL ( xfrm_policy_byid  )
EXPORT_SYMBOL ( xfrm_policy_flush  )
EXPORT_SYMBOL ( xfrm_policy_walk  )
EXPORT_SYMBOL ( xfrm_policy_walk_init  )
EXPORT_SYMBOL ( xfrm_policy_walk_done  )
EXPORT_SYMBOL ( xfrm_policy_delete  )
EXPORT_SYMBOL ( xfrm_lookup  )
EXPORT_SYMBOL ( __xfrm_decode_session  )
EXPORT_SYMBOL ( __xfrm_policy_check  )
EXPORT_SYMBOL ( __xfrm_route_forward  )
EXPORT_SYMBOL ( xfrm_dst_ifdown  )
EXPORT_SYMBOL ( xfrm_policy_register_afinfo  )
EXPORT_SYMBOL ( xfrm_policy_unregister_afinfo  )
void xfrm_dst_ifdown ( struct dst_entry dst,
struct net_device dev 
)

Definition at line 2273 of file xfrm_policy.c.

void __init xfrm_init ( void  )

Definition at line 2711 of file xfrm_policy.c.

struct dst_entry* xfrm_lookup ( struct net net,
struct dst_entry dst_orig,
const struct flowi fl,
struct sock sk,
int  flags 
)
read

Definition at line 1798 of file xfrm_policy.c.

struct xfrm_policy* xfrm_policy_alloc ( struct net net,
gfp_t  gfp 
)
read

Definition at line 277 of file xfrm_policy.c.

struct xfrm_policy* xfrm_policy_byid ( struct net net,
u32  mark,
u8  type,
int  dir,
u32  id,
int  delete,
int err 
)
read

Definition at line 666 of file xfrm_policy.c.

struct xfrm_policy* xfrm_policy_bysel_ctx ( struct net net,
u32  mark,
u8  type,
int  dir,
struct xfrm_selector sel,
struct xfrm_sec_ctx ctx,
int  delete,
int err 
)
read

Definition at line 626 of file xfrm_policy.c.

int xfrm_policy_delete ( struct xfrm_policy pol,
int  dir 
)

Definition at line 1087 of file xfrm_policy.c.

void xfrm_policy_destroy ( struct xfrm_policy policy)

Definition at line 300 of file xfrm_policy.c.

int xfrm_policy_flush ( struct net net,
u8  type,
struct xfrm_audit audit_info 
)

Definition at line 758 of file xfrm_policy.c.

int xfrm_policy_insert ( int  dir,
struct xfrm_policy policy,
int  excl 
)

Definition at line 565 of file xfrm_policy.c.

int xfrm_policy_register_afinfo ( struct xfrm_policy_afinfo afinfo)

Definition at line 2433 of file xfrm_policy.c.

int xfrm_policy_unregister_afinfo ( struct xfrm_policy_afinfo afinfo)

Definition at line 2490 of file xfrm_policy.c.

int xfrm_policy_walk ( struct net net,
struct xfrm_policy_walk walk,
int(*)(struct xfrm_policy *, int, int, void *)  func,
void data 
)

Definition at line 823 of file xfrm_policy.c.

void xfrm_policy_walk_done ( struct xfrm_policy_walk walk)

Definition at line 878 of file xfrm_policy.c.

void xfrm_policy_walk_init ( struct xfrm_policy_walk walk,
u8  type 
)

Definition at line 869 of file xfrm_policy.c.

bool xfrm_selector_match ( const struct xfrm_selector sel,
const struct flowi fl,
unsigned short  family 
)

Definition at line 85 of file xfrm_policy.c.

int xfrm_sk_policy_insert ( struct sock sk,
int  dir,
struct xfrm_policy pol 
)

Definition at line 1100 of file xfrm_policy.c.

void xfrm_spd_getinfo ( struct net net,
struct xfrmk_spdinfo si 
)

Definition at line 486 of file xfrm_policy.c.