Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip_tables.c File Reference
#include <linux/cache.h>
#include <linux/capability.h>
#include <linux/skbuff.h>
#include <linux/kmod.h>
#include <linux/vmalloc.h>
#include <linux/netdevice.h>
#include <linux/module.h>
#include <linux/icmp.h>
#include <net/ip.h>
#include <net/compat.h>
#include <asm/uaccess.h>
#include <linux/mutex.h>
#include <linux/proc_fs.h>
#include <linux/err.h>
#include <linux/cpumask.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <net/netfilter/nf_log.h>
#include "../../netfilter/xt_repldata.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define dprintf(format, args...)
 
#define duprintf(format, args...)
 
#define IP_NF_ASSERT(x)
 
#define FWINV(bool, invflg)   ((bool) ^ !!(ipinfo->invflags & (invflg)))
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Netfilter Core Team <[email protected]>")
 
 MODULE_DESCRIPTION ("IPv4 packet filter")
 
voidipt_alloc_initial_table (const struct xt_table *info)
 
 EXPORT_SYMBOL_GPL (ipt_alloc_initial_table)
 
unsigned int ipt_do_table (struct sk_buff *skb, unsigned int hook, const struct net_device *in, const struct net_device *out, struct xt_table *table)
 
struct xt_tableipt_register_table (struct net *net, const struct xt_table *table, const struct ipt_replace *repl)
 
void ipt_unregister_table (struct net *net, struct xt_table *table)
 
 EXPORT_SYMBOL (ipt_register_table)
 
 EXPORT_SYMBOL (ipt_unregister_table)
 
 EXPORT_SYMBOL (ipt_do_table)
 
 module_init (ip_tables_init)
 
 module_exit (ip_tables_fini)
 

Macro Definition Documentation

#define dprintf (   format,
  args... 
)

Definition at line 44 of file ip_tables.c.

#define duprintf (   format,
  args... 
)

Definition at line 50 of file ip_tables.c.

#define FWINV (   bool,
  invflg 
)    ((bool) ^ !!(ipinfo->invflags & (invflg)))
#define IP_NF_ASSERT (   x)

Definition at line 56 of file ip_tables.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 11 of file ip_tables.c.

Function Documentation

EXPORT_SYMBOL ( ipt_register_table  )
EXPORT_SYMBOL ( ipt_unregister_table  )
EXPORT_SYMBOL ( ipt_do_table  )
EXPORT_SYMBOL_GPL ( ipt_alloc_initial_table  )
void* ipt_alloc_initial_table ( const struct xt_table info)

Definition at line 65 of file ip_tables.c.

unsigned int ipt_do_table ( struct sk_buff skb,
unsigned int  hook,
const struct net_device in,
const struct net_device out,
struct xt_table table 
)

Definition at line 288 of file ip_tables.c.

struct xt_table* ipt_register_table ( struct net net,
const struct xt_table table,
const struct ipt_replace repl 
)
read

Definition at line 2058 of file ip_tables.c.

void ipt_unregister_table ( struct net net,
struct xt_table table 
)

Definition at line 2096 of file ip_tables.c.

MODULE_AUTHOR ( "Netfilter Core Team <[email protected]>"  )
MODULE_DESCRIPTION ( "IPv4 packet filter )
module_exit ( ip_tables_fini  )
module_init ( ip_tables_init  )
MODULE_LICENSE ( "GPL"  )