Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
af_key.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/socket.h>
#include <linux/pfkeyv2.h>
#include <linux/ipsec.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <net/xfrm.h>
#include <net/sock.h>

Go to the source code of this file.

Data Structures

struct  netns_pfkey
 
struct  pfkey_sock
 

Macros

#define _X2KEY(x)   ((x) == XFRM_INF ? 0 : (x))
 
#define _KEY2X(x)   ((x) == 0 ? XFRM_INF : (x))
 
#define DUMMY_MARK   0
 
#define BROADCAST_ALL   0
 
#define BROADCAST_ONE   1
 
#define BROADCAST_REGISTERED   2
 
#define BROADCAST_PROMISC_ONLY   4
 
#define PFKEY_ALIGN8(a)   (1 + (((a) - 1) | (8 - 1)))
 

Typedefs

typedef int(* pfkey_handler )(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void *const *ext_hdrs)
 

Functions

 module_init (ipsec_pfkey_init)
 
 module_exit (ipsec_pfkey_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_KEY)
 

Macro Definition Documentation

#define _KEY2X (   x)    ((x) == 0 ? XFRM_INF : (x))

Definition at line 37 of file af_key.c.

#define _X2KEY (   x)    ((x) == XFRM_INF ? 0 : (x))

Definition at line 36 of file af_key.c.

#define BROADCAST_ALL   0

Definition at line 219 of file af_key.c.

#define BROADCAST_ONE   1

Definition at line 220 of file af_key.c.

#define BROADCAST_PROMISC_ONLY   4

Definition at line 222 of file af_key.c.

#define BROADCAST_REGISTERED   2

Definition at line 221 of file af_key.c.

#define DUMMY_MARK   0

Definition at line 47 of file af_key.c.

#define PFKEY_ALIGN8 (   a)    (1 + (((a) - 1) | (8 - 1)))

Definition at line 657 of file af_key.c.

Typedef Documentation

typedef int(* pfkey_handler)(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void *const *ext_hdrs)

Definition at line 2725 of file af_key.c.

Function Documentation

MODULE_ALIAS_NETPROTO ( PF_KEY  )
module_exit ( ipsec_pfkey_exit  )
module_init ( ipsec_pfkey_init  )
MODULE_LICENSE ( "GPL"  )