Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ip_tables.h File Reference
#include <linux/if.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <uapi/linux/netfilter_ipv4/ip_tables.h>

Go to the source code of this file.

Data Structures

struct  ipt_standard
 
struct  ipt_error
 

Macros

#define IPT_ENTRY_INIT(__size)
 
#define IPT_STANDARD_INIT(__verdict)
 
#define IPT_ERROR_INIT
 

Functions

void ipt_init (void) __init
 
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)
 
voidipt_alloc_initial_table (const struct xt_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)
 

Macro Definition Documentation

#define IPT_ENTRY_INIT (   __size)
Value:
{ \
.target_offset = sizeof(struct ipt_entry), \
.next_offset = (__size), \
}

Definition at line 43 of file ip_tables.h.

#define IPT_ERROR_INIT
Value:
{ \
.entry = IPT_ENTRY_INIT(sizeof(struct ipt_error)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Definition at line 57 of file ip_tables.h.

#define IPT_STANDARD_INIT (   __verdict)
Value:
{ \
.entry = IPT_ENTRY_INIT(sizeof(struct ipt_standard)), \
sizeof(struct xt_standard_target)), \
.target.verdict = -(__verdict) - 1, \
}

Definition at line 49 of file ip_tables.h.

Function Documentation

void* ipt_alloc_initial_table ( const struct xt_table )

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.

void ipt_init ( void  )
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.