Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ip_set_hash_net.c File Reference
#include <linux/jhash.h>
#include <linux/module.h>
#include <linux/ip.h>
#include <linux/skbuff.h>
#include <linux/errno.h>
#include <linux/random.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <net/netlink.h>
#include <linux/netfilter.h>
#include <linux/netfilter/ipset/pfxlen.h>
#include <linux/netfilter/ipset/ip_set.h>
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#include <linux/netfilter/ipset/ip_set_ahash.h>

Go to the source code of this file.

Data Structures

struct  hash_net4_elem
 
struct  hash_net4_telem
 
struct  hash_net6_elem
 
struct  hash_net6_telem
 

Macros

#define REVISION_MIN   0
 
#define REVISION_MAX   2 /* nomatch flag support added */
 
#define TYPE   hash_net
 
#define hash_net4_same_set   hash_net_same_set
 
#define hash_net6_same_set   hash_net_same_set
 
#define IP_SET_HASH_WITH_NETS
 
#define PF   4
 
#define HOST_MASK   32
 
#define PF   6
 
#define HOST_MASK   128
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jozsef Kadlecsik <[email protected]>")
 
 IP_SET_MODULE_DESC ("hash:net", REVISION_MIN, REVISION_MAX)
 
 MODULE_ALIAS ("ip_set_hash:net")
 
 module_init (hash_net_init)
 
 module_exit (hash_net_fini)
 

Macro Definition Documentation

#define hash_net4_same_set   hash_net_same_set

Definition at line 41 of file ip_set_hash_net.c.

#define hash_net6_same_set   hash_net_same_set

Definition at line 42 of file ip_set_hash_net.c.

#define HOST_MASK   32

Definition at line 382 of file ip_set_hash_net.c.

#define HOST_MASK   128

Definition at line 382 of file ip_set_hash_net.c.

#define IP_SET_HASH_WITH_NETS

Definition at line 149 of file ip_set_hash_net.c.

#define PF   4

Definition at line 381 of file ip_set_hash_net.c.

#define PF   6

Definition at line 381 of file ip_set_hash_net.c.

#define REVISION_MAX   2 /* nomatch flag support added */

Definition at line 28 of file ip_set_hash_net.c.

#define REVISION_MIN   0

Definition at line 26 of file ip_set_hash_net.c.

#define TYPE   hash_net

Definition at line 36 of file ip_set_hash_net.c.

Function Documentation

IP_SET_MODULE_DESC ( "hash:net"  ,
REVISION_MIN  ,
REVISION_MAX   
)
MODULE_ALIAS ( "ip_set_hash:net"  )
MODULE_AUTHOR ( "Jozsef Kadlecsik <[email protected]>"  )
module_exit ( hash_net_fini  )
module_init ( hash_net_init  )
MODULE_LICENSE ( "GPL"  )