Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
core.c File Reference
#include <linux/kernel.h>
#include <linux/netfilter.h>
#include <net/protocol.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/if.h>
#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/proc_fs.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include "nf_internals.h"

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (nf_afinfo)
 
int nf_register_afinfo (const struct nf_afinfo *afinfo)
 
 EXPORT_SYMBOL_GPL (nf_register_afinfo)
 
void nf_unregister_afinfo (const struct nf_afinfo *afinfo)
 
 EXPORT_SYMBOL_GPL (nf_unregister_afinfo)
 
 EXPORT_SYMBOL (nf_hooks)
 
int nf_register_hook (struct nf_hook_ops *reg)
 
 EXPORT_SYMBOL (nf_register_hook)
 
void nf_unregister_hook (struct nf_hook_ops *reg)
 
 EXPORT_SYMBOL (nf_unregister_hook)
 
int nf_register_hooks (struct nf_hook_ops *reg, unsigned int n)
 
 EXPORT_SYMBOL (nf_register_hooks)
 
void nf_unregister_hooks (struct nf_hook_ops *reg, unsigned int n)
 
 EXPORT_SYMBOL (nf_unregister_hooks)
 
unsigned int nf_iterate (struct list_head *head, struct sk_buff *skb, unsigned int hook, const struct net_device *indev, const struct net_device *outdev, struct nf_hook_ops **elemp, int(*okfn)(struct sk_buff *), int hook_thresh)
 
int nf_hook_slow (u_int8_t pf, unsigned int hook, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int(*okfn)(struct sk_buff *), int hook_thresh)
 
 EXPORT_SYMBOL (nf_hook_slow)
 
int skb_make_writable (struct sk_buff *skb, unsigned int writable_len)
 
 EXPORT_SYMBOL (skb_make_writable)
 
void __init netfilter_init (void)
 

Variables

struct nf_afinfo __rcu
*nf_afinfo[NFPROTO_NUMPROTO
__read_mostly
 

Function Documentation

EXPORT_SYMBOL ( nf_afinfo  )
EXPORT_SYMBOL ( nf_hooks  )
EXPORT_SYMBOL ( nf_register_hook  )
EXPORT_SYMBOL ( nf_unregister_hook  )
EXPORT_SYMBOL ( nf_register_hooks  )
EXPORT_SYMBOL ( nf_unregister_hooks  )
EXPORT_SYMBOL ( nf_hook_slow  )
EXPORT_SYMBOL ( skb_make_writable  )
EXPORT_SYMBOL_GPL ( nf_register_afinfo  )
EXPORT_SYMBOL_GPL ( nf_unregister_afinfo  )
void __init netfilter_init ( void  )

Definition at line 284 of file core.c.

int nf_hook_slow ( u_int8_t  pf,
unsigned int  hook,
struct sk_buff skb,
struct net_device indev,
struct net_device outdev,
int(*)(struct sk_buff *)  okfn,
int  hook_thresh 
)

Definition at line 167 of file core.c.

unsigned int nf_iterate ( struct list_head head,
struct sk_buff skb,
unsigned int  hook,
const struct net_device indev,
const struct net_device outdev,
struct nf_hook_ops **  elemp,
int(*)(struct sk_buff *)  okfn,
int  hook_thresh 
)

Definition at line 124 of file core.c.

int nf_register_afinfo ( const struct nf_afinfo *  afinfo)

Definition at line 33 of file core.c.

int nf_register_hook ( struct nf_hook_ops *  reg)

Definition at line 65 of file core.c.

int nf_register_hooks ( struct nf_hook_ops *  reg,
unsigned int  n 
)

Definition at line 98 of file core.c.

void nf_unregister_afinfo ( const struct nf_afinfo *  afinfo)

Definition at line 46 of file core.c.

void nf_unregister_hook ( struct nf_hook_ops *  reg)

Definition at line 86 of file core.c.

void nf_unregister_hooks ( struct nf_hook_ops *  reg,
unsigned int  n 
)

Definition at line 117 of file core.c.

int skb_make_writable ( struct sk_buff skb,
unsigned int  writable_len 
)

Definition at line 209 of file core.c.

Variable Documentation

struct list_head nf_hooks [NFPROTO_NUMPROTO][NF_MAX_HOOKS] __read_mostly

Definition at line 30 of file core.c.