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

Go to the source code of this file.

Data Structures

struct  arpt_standard
 
struct  arpt_error
 

Macros

#define ARPT_ENTRY_INIT(__size)
 
#define ARPT_STANDARD_INIT(__verdict)
 
#define ARPT_ERROR_INIT
 

Functions

voidarpt_alloc_initial_table (const struct xt_table *)
 
struct xt_tablearpt_register_table (struct net *net, const struct xt_table *table, const struct arpt_replace *repl)
 
void arpt_unregister_table (struct xt_table *table)
 
unsigned int arpt_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 ARPT_ENTRY_INIT (   __size)
Value:
{ \
.target_offset = sizeof(struct arpt_entry), \
.next_offset = (__size), \
}

Definition at line 28 of file arp_tables.h.

#define ARPT_ERROR_INIT
Value:
{ \
.entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Definition at line 42 of file arp_tables.h.

#define ARPT_STANDARD_INIT (   __verdict)
Value:
{ \
.entry = ARPT_ENTRY_INIT(sizeof(struct arpt_standard)), \
sizeof(struct xt_standard_target)), \
.target.verdict = -(__verdict) - 1, \
}

Definition at line 34 of file arp_tables.h.

Function Documentation

void* arpt_alloc_initial_table ( const struct xt_table )

Definition at line 57 of file arp_tables.c.

unsigned int arpt_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 248 of file arp_tables.c.

struct xt_table* arpt_register_table ( struct net net,
const struct xt_table table,
const struct arpt_replace repl 
)
read

Definition at line 1764 of file arp_tables.c.

void arpt_unregister_table ( struct xt_table table)

Definition at line 1802 of file arp_tables.c.