Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
netnode.c File Reference
#include <linux/types.h>
#include <linux/rcupdate.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include "netnode.h"
#include "objsec.h"

Go to the source code of this file.

Data Structures

struct  sel_netnode_bkt
 
struct  sel_netnode
 

Macros

#define SEL_NETNODE_HASH_SIZE   256
 
#define SEL_NETNODE_HASH_BKT_LIMIT   16
 

Functions

int sel_netnode_sid (void *addr, u16 family, u32 *sid)
 
 __initcall (sel_netnode_init)
 

Macro Definition Documentation

#define SEL_NETNODE_HASH_BKT_LIMIT   16

Definition at line 47 of file netnode.c.

#define SEL_NETNODE_HASH_SIZE   256

Definition at line 46 of file netnode.c.

Function Documentation

__initcall ( sel_netnode_init  )
int sel_netnode_sid ( void addr,
u16  family,
u32 sid 
)

sel_netnode_sid - Lookup the SID of a network address : the IP address : the address family : node SID

Description: This function determines the SID of a network address using the fastest method possible. First the address table is queried, but if an entry can't be found then the policy is queried and the result is added to the table to speedup future queries. Returns zero on success, negative values on failure.

Definition at line 261 of file netnode.c.