Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ebtables.c File Reference
#include <linux/kmod.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_bridge/ebtables.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <linux/smp.h>
#include <linux/cpumask.h>
#include <net/sock.h>
#include "../br_private.h"

Go to the source code of this file.

Data Structures

struct  ebt_cl_stack
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define BUGPRINT(format, args...)
 
#define SMP_ALIGN(x)   (((x) + SMP_CACHE_BYTES-1) & ~(SMP_CACHE_BYTES-1))
 
#define COUNTER_OFFSET(n)   (SMP_ALIGN(n * sizeof(struct ebt_counter)))
 
#define COUNTER_BASE(c, n, cpu)
 
#define FWINV2(bool, invflg)   ((bool) ^ !!(e->invflags & invflg))
 

Functions

unsigned int ebt_do_table (unsigned int hook, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, struct ebt_table *table)
 
struct ebt_tableebt_register_table (struct net *net, const struct ebt_table *input_table)
 
void ebt_unregister_table (struct net *net, struct ebt_table *table)
 
 EXPORT_SYMBOL (ebt_register_table)
 
 EXPORT_SYMBOL (ebt_unregister_table)
 
 EXPORT_SYMBOL (ebt_do_table)
 
 module_init (ebtables_init)
 
 module_exit (ebtables_fini)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BUGPRINT (   format,
  args... 
)
Value:
printk("kernel msg: ebtables bug: please "\
"report to author: "format, ## args)

Definition at line 33 of file ebtables.c.

#define COUNTER_BASE (   c,
  n,
  cpu 
)
Value:
((struct ebt_counter *)(((char *)c) + \
COUNTER_OFFSET(n) * cpu))

Definition at line 47 of file ebtables.c.

#define COUNTER_OFFSET (   n)    (SMP_ALIGN(n * sizeof(struct ebt_counter)))

Definition at line 46 of file ebtables.c.

#define FWINV2 (   bool,
  invflg 
)    ((bool) ^ !!(e->invflags & invflg))

Definition at line 124 of file ebtables.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file ebtables.c.

#define SMP_ALIGN (   x)    (((x) + SMP_CACHE_BYTES-1) & ~(SMP_CACHE_BYTES-1))

Definition at line 45 of file ebtables.c.

Function Documentation

unsigned int ebt_do_table ( unsigned int  hook,
struct sk_buff skb,
const struct net_device in,
const struct net_device out,
struct ebt_table table 
)

Definition at line 185 of file ebtables.c.

struct ebt_table* ebt_register_table ( struct net net,
const struct ebt_table input_table 
)
read

Definition at line 1143 of file ebtables.c.

void ebt_unregister_table ( struct net net,
struct ebt_table table 
)

Definition at line 1244 of file ebtables.c.

EXPORT_SYMBOL ( ebt_register_table  )
EXPORT_SYMBOL ( ebt_unregister_table  )
EXPORT_SYMBOL ( ebt_do_table  )
module_exit ( ebtables_fini  )
module_init ( ebtables_init  )
MODULE_LICENSE ( "GPL"  )