Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
arp_tables.c File Reference
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/capability.h>
#include <linux/if_arp.h>
#include <linux/kmod.h>
#include <linux/vmalloc.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <net/compat.h>
#include <net/sock.h>
#include <asm/uaccess.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_arp/arp_tables.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 ARP_NF_ASSERT(x)
 
#define FWINV(bool, invflg)   ((bool) ^ !!(arpinfo->invflags & (invflg)))
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David S. Miller <[email protected]>")
 
 MODULE_DESCRIPTION ("arptables core")
 
voidarpt_alloc_initial_table (const struct xt_table *info)
 
 EXPORT_SYMBOL_GPL (arpt_alloc_initial_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)
 
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)
 
 EXPORT_SYMBOL (arpt_register_table)
 
 EXPORT_SYMBOL (arpt_unregister_table)
 
 EXPORT_SYMBOL (arpt_do_table)
 
 module_init (arp_tables_init)
 
 module_exit (arp_tables_fini)
 

Macro Definition Documentation

#define ARP_NF_ASSERT (   x)

Definition at line 54 of file arp_tables.c.

#define dprintf (   format,
  args... 
)

Definition at line 42 of file arp_tables.c.

#define duprintf (   format,
  args... 
)

Definition at line 48 of file arp_tables.c.

#define FWINV (   bool,
  invflg 
)    ((bool) ^ !!(arpinfo->invflags & (invflg)))
#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 11 of file arp_tables.c.

Function Documentation

void* arpt_alloc_initial_table ( const struct xt_table info)

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.

EXPORT_SYMBOL ( arpt_register_table  )
EXPORT_SYMBOL ( arpt_unregister_table  )
EXPORT_SYMBOL ( arpt_do_table  )
EXPORT_SYMBOL_GPL ( arpt_alloc_initial_table  )
MODULE_AUTHOR ( "David S. Miller <[email protected]>"  )
MODULE_DESCRIPTION ( "arptables core )
module_exit ( arp_tables_fini  )
module_init ( arp_tables_init  )
MODULE_LICENSE ( "GPL"  )