Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
xfrm.h File Reference
#include <linux/compiler.h>
#include <linux/xfrm.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/socket.h>
#include <linux/pfkeyv2.h>
#include <linux/ipsec.h>
#include <linux/in6.h>
#include <linux/mutex.h>
#include <linux/audit.h>
#include <linux/slab.h>
#include <net/sock.h>
#include <net/dst.h>
#include <net/ip.h>
#include <net/route.h>
#include <net/ipv6.h>
#include <net/ip6_fib.h>
#include <net/flow.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  xfrm_state_walk
 
struct  xfrm_state
 
struct  km_event
 
struct  xfrm_replay
 
struct  xfrm_policy_afinfo
 
struct  xfrm_state_afinfo
 
struct  xfrm_type
 
struct  xfrm_mode
 
struct  xfrm_tmpl
 
struct  xfrm_policy_walk_entry
 
struct  xfrm_policy_walk
 
struct  xfrm_policy
 
struct  xfrm_kmaddress
 
struct  xfrm_migrate
 
struct  xfrm_mgr
 
struct  xfrm_skb_cb
 
struct  xfrm_mode_skb_cb
 
struct  xfrm_spi_skb_cb
 
struct  xfrm_audit
 
struct  xfrm_dst
 
struct  sec_path
 
struct  xfrm_algo_aead_info
 
struct  xfrm_algo_auth_info
 
struct  xfrm_algo_encr_info
 
struct  xfrm_algo_comp_info
 
struct  xfrm_algo_desc
 
struct  xfrm_tunnel
 
struct  xfrm6_tunnel
 
struct  xfrmk_sadinfo
 
struct  xfrmk_spdinfo
 

Macros

#define XFRM_PROTO_ESP   50
 
#define XFRM_PROTO_AH   51
 
#define XFRM_PROTO_COMP   108
 
#define XFRM_PROTO_IPIP   4
 
#define XFRM_PROTO_IPV6   41
 
#define XFRM_PROTO_ROUTING   IPPROTO_ROUTING
 
#define XFRM_PROTO_DSTOPTS   IPPROTO_DSTOPTS
 
#define XFRM_ALIGN4(len)   (((len) + 3) & ~3)
 
#define XFRM_ALIGN8(len)   (((len) + 7) & ~7)
 
#define MODULE_ALIAS_XFRM_MODE(family, encap)   MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap))
 
#define MODULE_ALIAS_XFRM_TYPE(family, proto)   MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))
 
#define XFRM_INC_STATS(net, field)   ((void)(net))
 
#define XFRM_INC_STATS_BH(net, field)   ((void)(net))
 
#define XFRM_INC_STATS_USER(net, field)   ((void)(net))
 
#define XFRM_TIME_DEFER   1
 
#define XFRM_SOFT_EXPIRE   2
 
#define XFRM_TYPE_NON_FRAGMENT   1
 
#define XFRM_TYPE_REPLAY_PROT   2
 
#define XFRM_TYPE_LOCAL_COADDR   4
 
#define XFRM_TYPE_REMOTE_COADDR   8
 
#define XFRM_MAX_DEPTH   6
 
#define XFRM_KM_TIMEOUT   30
 
#define XFRM_REPLAY_SEQ   1
 
#define XFRM_REPLAY_OSEQ   2
 
#define XFRM_REPLAY_SEQ_MASK   3
 
#define XFRM_REPLAY_UPDATE   XFRM_AE_CR
 
#define XFRM_REPLAY_TIMEOUT   XFRM_AE_CE
 
#define XFRM_AE_ETIME   10
 
#define XFRM_AE_ETH_M   10
 
#define XFRM_AE_SEQT_SIZE   2
 
#define XFRM_SKB_CB(__skb)   ((struct xfrm_skb_cb *)&((__skb)->cb[0]))
 
#define XFRM_MODE_SKB_CB(__skb)   ((struct xfrm_mode_skb_cb *)&((__skb)->cb[0]))
 
#define XFRM_SPI_SKB_CB(__skb)   ((struct xfrm_spi_skb_cb *)&((__skb)->cb[0]))
 

Enumerations

enum  {
  XFRM_STATE_VOID, XFRM_STATE_ACQ, XFRM_STATE_VALID, XFRM_STATE_ERROR,
  XFRM_STATE_EXPIRED, XFRM_STATE_DEAD
}
 
enum  { XFRM_MODE_FLAG_TUNNEL = 1 }
 

Functions

int xfrm_policy_register_afinfo (struct xfrm_policy_afinfo *afinfo)
 
int xfrm_policy_unregister_afinfo (struct xfrm_policy_afinfo *afinfo)
 
void km_policy_notify (struct xfrm_policy *xp, int dir, const struct km_event *c)
 
void km_state_notify (struct xfrm_state *x, const struct km_event *c)
 
int km_query (struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol)
 
void km_state_expired (struct xfrm_state *x, int hard, u32 portid)
 
int __xfrm_state_delete (struct xfrm_state *x)
 
int xfrm_state_register_afinfo (struct xfrm_state_afinfo *afinfo)
 
int xfrm_state_unregister_afinfo (struct xfrm_state_afinfo *afinfo)
 
void xfrm_state_delete_tunnel (struct xfrm_state *x)
 
int xfrm_register_type (const struct xfrm_type *type, unsigned short family)
 
int xfrm_unregister_type (const struct xfrm_type *type, unsigned short family)
 
int xfrm_register_mode (struct xfrm_mode *mode, int family)
 
int xfrm_unregister_mode (struct xfrm_mode *mode, int family)
 
int xfrm_register_km (struct xfrm_mgr *km)
 
int xfrm_unregister_km (struct xfrm_mgr *km)
 
void xfrm_policy_destroy (struct xfrm_policy *policy)
 
void __xfrm_state_destroy (struct xfrm_state *)
 
bool xfrm_selector_match (const struct xfrm_selector *sel, const struct flowi *fl, unsigned short family)
 
void xfrm_dst_ifdown (struct dst_entry *dst, struct net_device *dev)
 
void __secpath_destroy (struct sec_path *sp)
 
struct sec_pathsecpath_dup (struct sec_path *src)
 
void xfrm_init (void)
 
void xfrm4_init (void)
 
int xfrm_state_init (struct net *net)
 
void xfrm_state_fini (struct net *net)
 
void xfrm4_state_init (void)
 
int xfrm_sysctl_init (struct net *net)
 
void xfrm_state_walk_init (struct xfrm_state_walk *walk, u8 proto)
 
int xfrm_state_walk (struct net *net, struct xfrm_state_walk *walk, int(*func)(struct xfrm_state *, int, void *), void *)
 
void xfrm_state_walk_done (struct xfrm_state_walk *walk)
 
struct xfrm_statexfrm_state_alloc (struct net *net)
 
struct xfrm_statexfrm_state_find (const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family)
 
struct xfrm_statexfrm_stateonly_find (struct net *net, u32 mark, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid)
 
int xfrm_state_check_expire (struct xfrm_state *x)
 
void xfrm_state_insert (struct xfrm_state *x)
 
int xfrm_state_add (struct xfrm_state *x)
 
int xfrm_state_update (struct xfrm_state *x)
 
struct xfrm_statexfrm_state_lookup (struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family)
 
struct xfrm_statexfrm_state_lookup_byaddr (struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family)
 
struct xfrm_statexfrm_find_acq_byseq (struct net *net, u32 mark, u32 seq)
 
int xfrm_state_delete (struct xfrm_state *x)
 
int xfrm_state_flush (struct net *net, u8 proto, struct xfrm_audit *audit_info)
 
void xfrm_sad_getinfo (struct net *net, struct xfrmk_sadinfo *si)
 
void xfrm_spd_getinfo (struct net *net, struct xfrmk_spdinfo *si)
 
u32 xfrm_replay_seqhi (struct xfrm_state *x, __be32 net_seq)
 
int xfrm_init_replay (struct xfrm_state *x)
 
int xfrm_state_mtu (struct xfrm_state *x, int mtu)
 
int __xfrm_init_state (struct xfrm_state *x, bool init_replay)
 
int xfrm_init_state (struct xfrm_state *x)
 
int xfrm_prepare_input (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm_input (struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
 
int xfrm_input_resume (struct sk_buff *skb, int nexthdr)
 
int xfrm_output_resume (struct sk_buff *skb, int err)
 
int xfrm_output (struct sk_buff *skb)
 
int xfrm_inner_extract_output (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm4_extract_header (struct sk_buff *skb)
 
int xfrm4_extract_input (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm4_rcv_encap (struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
 
int xfrm4_transport_finish (struct sk_buff *skb, int async)
 
int xfrm4_rcv (struct sk_buff *skb)
 
int xfrm4_extract_output (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm4_prepare_output (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm4_output (struct sk_buff *skb)
 
int xfrm4_output_finish (struct sk_buff *skb)
 
int xfrm4_tunnel_register (struct xfrm_tunnel *handler, unsigned short family)
 
int xfrm4_tunnel_deregister (struct xfrm_tunnel *handler, unsigned short family)
 
int xfrm4_mode_tunnel_input_register (struct xfrm_tunnel *handler)
 
int xfrm4_mode_tunnel_input_deregister (struct xfrm_tunnel *handler)
 
int xfrm6_extract_header (struct sk_buff *skb)
 
int xfrm6_extract_input (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm6_rcv_spi (struct sk_buff *skb, int nexthdr, __be32 spi)
 
int xfrm6_transport_finish (struct sk_buff *skb, int async)
 
int xfrm6_rcv (struct sk_buff *skb)
 
int xfrm6_input_addr (struct sk_buff *skb, xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto)
 
int xfrm6_tunnel_register (struct xfrm6_tunnel *handler, unsigned short family)
 
int xfrm6_tunnel_deregister (struct xfrm6_tunnel *handler, unsigned short family)
 
__be32 xfrm6_tunnel_alloc_spi (struct net *net, xfrm_address_t *saddr)
 
__be32 xfrm6_tunnel_spi_lookup (struct net *net, const xfrm_address_t *saddr)
 
int xfrm6_extract_output (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm6_prepare_output (struct xfrm_state *x, struct sk_buff *skb)
 
int xfrm6_output (struct sk_buff *skb)
 
int xfrm6_output_finish (struct sk_buff *skb)
 
int xfrm6_find_1stfragopt (struct xfrm_state *x, struct sk_buff *skb, u8 **prevhdr)
 
struct xfrm_policyxfrm_policy_alloc (struct net *net, gfp_t gfp)
 
void xfrm_policy_walk_init (struct xfrm_policy_walk *walk, u8 type)
 
int xfrm_policy_walk (struct net *net, struct xfrm_policy_walk *walk, int(*func)(struct xfrm_policy *, int, int, void *), void *)
 
void xfrm_policy_walk_done (struct xfrm_policy_walk *walk)
 
int xfrm_policy_insert (int dir, struct xfrm_policy *policy, int excl)
 
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)
 
struct xfrm_policyxfrm_policy_byid (struct net *net, u32 mark, u8, int dir, u32 id, int delete, int *err)
 
int xfrm_policy_flush (struct net *net, u8 type, struct xfrm_audit *audit_info)
 
u32 xfrm_get_acqseq (void)
 
int xfrm_alloc_spi (struct xfrm_state *x, u32 minspi, u32 maxspi)
 
struct xfrm_statexfrm_find_acq (struct net *net, struct xfrm_mark *mark, u8 mode, u32 reqid, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family)
 
int xfrm_sk_policy_insert (struct sock *sk, int dir, struct xfrm_policy *pol)
 
int km_new_mapping (struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport)
 
void km_policy_expired (struct xfrm_policy *pol, int dir, int hard, u32 portid)
 
int km_report (struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr)
 
void xfrm_input_init (void)
 
int xfrm_parse_spi (struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq)
 
void xfrm_probe_algs (void)
 
int xfrm_count_auth_supported (void)
 
int xfrm_count_enc_supported (void)
 
struct xfrm_algo_descxfrm_aalg_get_byidx (unsigned int idx)
 
struct xfrm_algo_descxfrm_ealg_get_byidx (unsigned int idx)
 
struct xfrm_algo_descxfrm_aalg_get_byid (int alg_id)
 
struct xfrm_algo_descxfrm_ealg_get_byid (int alg_id)
 
struct xfrm_algo_descxfrm_calg_get_byid (int alg_id)
 
struct xfrm_algo_descxfrm_aalg_get_byname (const char *name, int probe)
 
struct xfrm_algo_descxfrm_ealg_get_byname (const char *name, int probe)
 
struct xfrm_algo_descxfrm_calg_get_byname (const char *name, int probe)
 
struct xfrm_algo_descxfrm_aead_get_byname (const char *name, int icv_len, int probe)
 

Variables

struct mutex xfrm_cfg_mutex
 

Macro Definition Documentation

#define MODULE_ALIAS_XFRM_MODE (   family,
  encap 
)    MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap))

Definition at line 41 of file xfrm.h.

#define MODULE_ALIAS_XFRM_TYPE (   family,
  proto 
)    MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))

Definition at line 43 of file xfrm.h.

#define XFRM_AE_ETH_M   10

Definition at line 571 of file xfrm.h.

#define XFRM_AE_ETIME   10

Definition at line 569 of file xfrm.h.

#define XFRM_AE_SEQT_SIZE   2

Definition at line 573 of file xfrm.h.

#define XFRM_ALIGN4 (   len)    (((len) + 3) & ~3)

Definition at line 39 of file xfrm.h.

#define XFRM_ALIGN8 (   len)    (((len) + 7) & ~7)

Definition at line 40 of file xfrm.h.

#define XFRM_INC_STATS (   net,
  field 
)    ((void)(net))

Definition at line 51 of file xfrm.h.

#define XFRM_INC_STATS_BH (   net,
  field 
)    ((void)(net))

Definition at line 52 of file xfrm.h.

#define XFRM_INC_STATS_USER (   net,
  field 
)    ((void)(net))

Definition at line 53 of file xfrm.h.

#define XFRM_KM_TIMEOUT   30

Definition at line 559 of file xfrm.h.

#define XFRM_MAX_DEPTH   6

Definition at line 491 of file xfrm.h.

#define XFRM_MODE_SKB_CB (   __skb)    ((struct xfrm_mode_skb_cb *)&((__skb)->cb[0]))

Definition at line 653 of file xfrm.h.

#define XFRM_PROTO_AH   51

Definition at line 32 of file xfrm.h.

#define XFRM_PROTO_COMP   108

Definition at line 33 of file xfrm.h.

#define XFRM_PROTO_DSTOPTS   IPPROTO_DSTOPTS

Definition at line 37 of file xfrm.h.

#define XFRM_PROTO_ESP   50

Definition at line 31 of file xfrm.h.

#define XFRM_PROTO_IPIP   4

Definition at line 34 of file xfrm.h.

#define XFRM_PROTO_IPV6   41

Definition at line 35 of file xfrm.h.

#define XFRM_PROTO_ROUTING   IPPROTO_ROUTING

Definition at line 36 of file xfrm.h.

#define XFRM_REPLAY_OSEQ   2

Definition at line 562 of file xfrm.h.

#define XFRM_REPLAY_SEQ   1

Definition at line 561 of file xfrm.h.

#define XFRM_REPLAY_SEQ_MASK   3

Definition at line 563 of file xfrm.h.

#define XFRM_REPLAY_TIMEOUT   XFRM_AE_CE

Definition at line 566 of file xfrm.h.

#define XFRM_REPLAY_UPDATE   XFRM_AE_CR

Definition at line 565 of file xfrm.h.

#define XFRM_SKB_CB (   __skb)    ((struct xfrm_skb_cb *)&((__skb)->cb[0]))

Definition at line 618 of file xfrm.h.

#define XFRM_SOFT_EXPIRE   2

Definition at line 244 of file xfrm.h.

#define XFRM_SPI_SKB_CB (   __skb)    ((struct xfrm_spi_skb_cb *)&((__skb)->cb[0]))

Definition at line 669 of file xfrm.h.

#define XFRM_TIME_DEFER   1

Definition at line 243 of file xfrm.h.

#define XFRM_TYPE_LOCAL_COADDR   4

Definition at line 357 of file xfrm.h.

#define XFRM_TYPE_NON_FRAGMENT   1

Definition at line 355 of file xfrm.h.

#define XFRM_TYPE_REMOTE_COADDR   8

Definition at line 358 of file xfrm.h.

#define XFRM_TYPE_REPLAY_PROT   2

Definition at line 356 of file xfrm.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
XFRM_STATE_VOID 
XFRM_STATE_ACQ 
XFRM_STATE_VALID 
XFRM_STATE_ERROR 
XFRM_STATE_EXPIRED 
XFRM_STATE_DEAD 

Definition at line 246 of file xfrm.h.

anonymous enum
Enumerator:
XFRM_MODE_FLAG_TUNNEL 

Definition at line 429 of file xfrm.h.

Function Documentation

void __secpath_destroy ( struct sec_path sp)

Definition at line 19 of file xfrm_input.c.

int __xfrm_init_state ( struct xfrm_state x,
bool  init_replay 
)

Definition at line 1927 of file xfrm_state.c.

int __xfrm_state_delete ( struct xfrm_state x)

Definition at line 541 of file xfrm_state.c.

void __xfrm_state_destroy ( struct xfrm_state )

Definition at line 528 of file xfrm_state.c.

int km_new_mapping ( struct xfrm_state x,
xfrm_address_t ipaddr,
__be16  sport 
)

Definition at line 1712 of file xfrm_state.c.

void km_policy_expired ( struct xfrm_policy pol,
int  dir,
int  hard,
u32  portid 
)

Definition at line 1729 of file xfrm_state.c.

void km_policy_notify ( struct xfrm_policy xp,
int  dir,
const struct km_event c 
)

Definition at line 1653 of file xfrm_state.c.

int km_query ( struct xfrm_state x,
struct xfrm_tmpl t,
struct xfrm_policy pol 
)

Definition at line 1696 of file xfrm_state.c.

int km_report ( struct net net,
u8  proto,
struct xfrm_selector sel,
xfrm_address_t addr 
)

Definition at line 1767 of file xfrm_state.c.

void km_state_expired ( struct xfrm_state x,
int  hard,
u32  portid 
)

Definition at line 1677 of file xfrm_state.c.

void km_state_notify ( struct xfrm_state x,
const struct km_event c 
)

Definition at line 1664 of file xfrm_state.c.

struct sec_path* secpath_dup ( struct sec_path src)
read

Definition at line 28 of file xfrm_input.c.

int xfrm4_extract_header ( struct sk_buff skb)

Definition at line 57 of file xfrm4_state.c.

int xfrm4_extract_input ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 20 of file xfrm4_input.c.

int xfrm4_extract_output ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 47 of file xfrm4_output.c.

void xfrm4_init ( void  )

Definition at line 282 of file xfrm4_policy.c.

int xfrm4_mode_tunnel_input_deregister ( struct xfrm_tunnel handler)

Definition at line 53 of file xfrm4_mode_tunnel.c.

int xfrm4_mode_tunnel_input_register ( struct xfrm_tunnel handler)

Definition at line 22 of file xfrm4_mode_tunnel.c.

int xfrm4_output ( struct sk_buff skb)

Definition at line 92 of file xfrm4_output.c.

int xfrm4_output_finish ( struct sk_buff skb)

Definition at line 77 of file xfrm4_output.c.

int xfrm4_prepare_output ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 60 of file xfrm4_output.c.

int xfrm4_rcv ( struct sk_buff skb)

Definition at line 162 of file xfrm4_input.c.

int xfrm4_rcv_encap ( struct sk_buff skb,
int  nexthdr,
__be32  spi,
int  encap_type 
)

Definition at line 40 of file xfrm4_input.c.

void xfrm4_state_init ( void  )

Definition at line 88 of file xfrm4_state.c.

int xfrm4_transport_finish ( struct sk_buff skb,
int  async 
)

Definition at line 49 of file xfrm4_input.c.

int xfrm4_tunnel_deregister ( struct xfrm_tunnel handler,
unsigned short  family 
)

Definition at line 58 of file tunnel4.c.

int xfrm4_tunnel_register ( struct xfrm_tunnel handler,
unsigned short  family 
)

Definition at line 26 of file tunnel4.c.

int xfrm6_extract_header ( struct sk_buff skb)

Definition at line 156 of file xfrm6_state.c.

int xfrm6_extract_input ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 19 of file xfrm6_input.c.

int xfrm6_extract_output ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 92 of file xfrm6_output.c.

int xfrm6_find_1stfragopt ( struct xfrm_state x,
struct sk_buff skb,
u8 **  prevhdr 
)

Definition at line 23 of file xfrm6_output.c.

int xfrm6_input_addr ( struct sk_buff skb,
xfrm_address_t daddr,
xfrm_address_t saddr,
u8  proto 
)

Definition at line 58 of file xfrm6_input.c.

int xfrm6_output ( struct sk_buff skb)

Definition at line 157 of file xfrm6_output.c.

int xfrm6_output_finish ( struct sk_buff skb)

Definition at line 125 of file xfrm6_output.c.

int xfrm6_prepare_output ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 105 of file xfrm6_output.c.

int xfrm6_rcv ( struct sk_buff skb)

Definition at line 50 of file xfrm6_input.c.

int xfrm6_rcv_spi ( struct sk_buff skb,
int  nexthdr,
__be32  spi 
)

Definition at line 24 of file xfrm6_input.c.

int xfrm6_transport_finish ( struct sk_buff skb,
int  async 
)

Definition at line 32 of file xfrm6_input.c.

__be32 xfrm6_tunnel_alloc_spi ( struct net net,
xfrm_address_t saddr 
)

Definition at line 177 of file xfrm6_tunnel.c.

int xfrm6_tunnel_deregister ( struct xfrm6_tunnel handler,
unsigned short  family 
)

Definition at line 71 of file tunnel6.c.

int xfrm6_tunnel_register ( struct xfrm6_tunnel handler,
unsigned short  family 
)

Definition at line 39 of file tunnel6.c.

__be32 xfrm6_tunnel_spi_lookup ( struct net net,
const xfrm_address_t saddr 
)

Definition at line 104 of file xfrm6_tunnel.c.

struct xfrm_algo_desc* xfrm_aalg_get_byid ( int  alg_id)
read

Definition at line 588 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_aalg_get_byidx ( unsigned int  idx)
read

Definition at line 666 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_aalg_get_byname ( const char name,
int  probe 
)
read

Definition at line 618 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_aead_get_byname ( const char name,
int  icv_len,
int  probe 
)
read

Definition at line 654 of file xfrm_algo.c.

int xfrm_alloc_spi ( struct xfrm_state x,
u32  minspi,
u32  maxspi 
)

Definition at line 1519 of file xfrm_state.c.

struct xfrm_algo_desc* xfrm_calg_get_byid ( int  alg_id)
read

Definition at line 602 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_calg_get_byname ( const char name,
int  probe 
)
read

Definition at line 632 of file xfrm_algo.c.

int xfrm_count_auth_supported ( void  )

Definition at line 718 of file xfrm_algo.c.

int xfrm_count_enc_supported ( void  )

Definition at line 729 of file xfrm_algo.c.

void xfrm_dst_ifdown ( struct dst_entry dst,
struct net_device dev 
)

Definition at line 2273 of file xfrm_policy.c.

struct xfrm_algo_desc* xfrm_ealg_get_byid ( int  alg_id)
read

Definition at line 595 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_ealg_get_byidx ( unsigned int  idx)
read

Definition at line 675 of file xfrm_algo.c.

struct xfrm_algo_desc* xfrm_ealg_get_byname ( const char name,
int  probe 
)
read

Definition at line 625 of file xfrm_algo.c.

struct xfrm_state* xfrm_find_acq ( struct net net,
struct xfrm_mark mark,
u8  mode,
u32  reqid,
u8  proto,
const xfrm_address_t daddr,
const xfrm_address_t saddr,
int  create,
unsigned short  family 
)
read

Definition at line 1421 of file xfrm_state.c.

struct xfrm_state* xfrm_find_acq_byseq ( struct net net,
u32  mark,
u32  seq 
)
read

Definition at line 1495 of file xfrm_state.c.

u32 xfrm_get_acqseq ( void  )

Definition at line 1506 of file xfrm_state.c.

void xfrm_init ( void  )

Definition at line 2711 of file xfrm_policy.c.

int xfrm_init_replay ( struct xfrm_state x)

Definition at line 515 of file xfrm_replay.c.

int xfrm_init_state ( struct xfrm_state x)

Definition at line 2016 of file xfrm_state.c.

int xfrm_inner_extract_output ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 197 of file xfrm_output.c.

int xfrm_input ( struct sk_buff skb,
int  nexthdr,
__be32  spi,
int  encap_type 
)

Definition at line 105 of file xfrm_input.c.

void xfrm_input_init ( void  )

Definition at line 285 of file xfrm_input.c.

int xfrm_input_resume ( struct sk_buff skb,
int  nexthdr 
)

Definition at line 279 of file xfrm_input.c.

int xfrm_output ( struct sk_buff skb)

Definition at line 177 of file xfrm_output.c.

int xfrm_output_resume ( struct sk_buff skb,
int  err 
)

Definition at line 114 of file xfrm_output.c.

int xfrm_parse_spi ( struct sk_buff skb,
u8  nexthdr,
__be32 spi,
__be32 seq 
)

Definition at line 51 of file xfrm_input.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  ,
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.

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  
)

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.

int xfrm_prepare_input ( struct xfrm_state x,
struct sk_buff skb 
)

Definition at line 85 of file xfrm_input.c.

void xfrm_probe_algs ( void  )

Definition at line 689 of file xfrm_algo.c.

int xfrm_register_km ( struct xfrm_mgr km)

Definition at line 1826 of file xfrm_state.c.

int xfrm_register_mode ( struct xfrm_mode mode,
int  family 
)

Definition at line 259 of file xfrm_state.c.

int xfrm_register_type ( const struct xfrm_type type,
unsigned short  family 
)

Definition at line 189 of file xfrm_state.c.

u32 xfrm_replay_seqhi ( struct xfrm_state x,
__be32  net_seq 
)

Definition at line 24 of file xfrm_replay.c.

void xfrm_sad_getinfo ( struct net net,
struct xfrmk_sadinfo si 
)

Definition at line 657 of file xfrm_state.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.

int xfrm_state_add ( struct xfrm_state x)

Definition at line 1085 of file xfrm_state.c.

struct xfrm_state* xfrm_state_alloc ( struct net net)
read

Definition at line 496 of file xfrm_state.c.

int xfrm_state_check_expire ( struct xfrm_state x)

Definition at line 1368 of file xfrm_state.c.

int xfrm_state_delete ( struct xfrm_state x)

Definition at line 569 of file xfrm_state.c.

void xfrm_state_delete_tunnel ( struct xfrm_state x)

Definition at line 1899 of file xfrm_state.c.

struct xfrm_state* xfrm_state_find ( const xfrm_address_t daddr,
const xfrm_address_t saddr,
const struct flowi fl,
struct xfrm_tmpl tmpl,
struct xfrm_policy pol,
int err,
unsigned short  family 
)
read

Definition at line 801 of file xfrm_state.c.

void xfrm_state_fini ( struct net net)

Definition at line 2057 of file xfrm_state.c.

int xfrm_state_flush ( struct net net,
u8  proto,
struct xfrm_audit audit_info 
)

Definition at line 613 of file xfrm_state.c.

int xfrm_state_init ( struct net net)

Definition at line 2023 of file xfrm_state.c.

void xfrm_state_insert ( struct xfrm_state x)

Definition at line 998 of file xfrm_state.c.

struct xfrm_state* xfrm_state_lookup ( struct net net,
u32  mark,
const xfrm_address_t daddr,
__be32  spi,
u8  proto,
unsigned short  family 
)
read

Definition at line 1394 of file xfrm_state.c.

struct xfrm_state* xfrm_state_lookup_byaddr ( struct net net,
u32  mark,
const xfrm_address_t daddr,
const xfrm_address_t saddr,
u8  proto,
unsigned short  family 
)
read

Definition at line 1407 of file xfrm_state.c.

int xfrm_state_mtu ( struct xfrm_state x,
int  mtu 
)

Definition at line 1913 of file xfrm_state.c.

int xfrm_state_register_afinfo ( struct xfrm_state_afinfo afinfo)

Definition at line 1844 of file xfrm_state.c.

int xfrm_state_unregister_afinfo ( struct xfrm_state_afinfo afinfo)

Definition at line 1861 of file xfrm_state.c.

int xfrm_state_update ( struct xfrm_state x)

Definition at line 1297 of file xfrm_state.c.

int xfrm_state_walk ( struct net net,
struct xfrm_state_walk walk,
int(*)(struct xfrm_state *, int, void *)  func,
void  
)

Definition at line 1574 of file xfrm_state.c.

void xfrm_state_walk_done ( struct xfrm_state_walk walk)

Definition at line 1623 of file xfrm_state.c.

void xfrm_state_walk_init ( struct xfrm_state_walk walk,
u8  proto 
)

Definition at line 1614 of file xfrm_state.c.

struct xfrm_state* xfrm_stateonly_find ( struct net net,
u32  mark,
xfrm_address_t daddr,
xfrm_address_t saddr,
unsigned short  family,
u8  mode,
u8  proto,
u32  reqid 
)
read

Definition at line 911 of file xfrm_state.c.

int xfrm_sysctl_init ( struct net net)

Definition at line 77 of file xfrm_sysctl.c.

int xfrm_unregister_km ( struct xfrm_mgr km)

Definition at line 1835 of file xfrm_state.c.

int xfrm_unregister_mode ( struct xfrm_mode mode,
int  family 
)

Definition at line 291 of file xfrm_state.c.

int xfrm_unregister_type ( const struct xfrm_type type,
unsigned short  family 
)

Definition at line 208 of file xfrm_state.c.

Variable Documentation

struct mutex xfrm_cfg_mutex