netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ip_set_hash_netiface.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_hash.h>
#include "ip_set_hash_gen.h"
Include dependency graph for ip_set_hash_netiface.c:

Data Structures

struct  hash_netiface4_elem_hashed
 
struct  hash_netiface4_elem
 
struct  hash_netiface6_elem_hashed
 
struct  hash_netiface6_elem
 

Macros

#define IPSET_TYPE_REV_MIN   0
 
#define IPSET_TYPE_REV_MAX   6 /* skbinfo support added */
 
#define HTYPE   hash_netiface
 
#define IP_SET_HASH_WITH_NETS
 
#define IP_SET_HASH_WITH_MULTI
 
#define IP_SET_HASH_WITH_NET0
 
#define STREQ(a, b)   (strcmp(a, b) == 0)
 
#define IFNAMCPY(a, b)   strncpy(a, b, IFNAMSIZ)
 
#define MTYPE   hash_netiface4
 
#define PF   4
 
#define HOST_MASK   32
 
#define HKEY_DATALEN   sizeof(struct hash_netiface4_elem_hashed)
 
#define IFACE(dir)   (par->dir ? par->dir->name : "")
 
#define PHYSDEV(dir)   (nf_bridge->dir ? nf_bridge->dir->name : "")
 
#define SRCDIR   (opt->flags & IPSET_DIM_TWO_SRC)
 
#define MTYPE   hash_netiface6
 
#define PF   6
 
#define HOST_MASK   128
 
#define HKEY_DATALEN   sizeof(struct hash_netiface6_elem_hashed)
 
#define IP_SET_EMIT_CREATE
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>")
 
 IP_SET_MODULE_DESC ("hash:net,iface", IPSET_TYPE_REV_MIN, IPSET_TYPE_REV_MAX)
 
 MODULE_ALIAS ("ip_set_hash:net,iface")
 
 module_init (hash_netiface_init)
 
 module_exit (hash_netiface_fini)
 

Macro Definition Documentation

#define HKEY_DATALEN   sizeof(struct hash_netiface4_elem_hashed)
#define HKEY_DATALEN   sizeof(struct hash_netiface6_elem_hashed)
#define HOST_MASK   32
#define HOST_MASK   128
#define HTYPE   hash_netiface
#define IFACE (   dir)    (par->dir ? par->dir->name : "")
#define IFNAMCPY (   a,
 
)    strncpy(a, b, IFNAMSIZ)
#define IP_SET_EMIT_CREATE
#define IP_SET_HASH_WITH_MULTI
#define IP_SET_HASH_WITH_NET0
#define IP_SET_HASH_WITH_NETS
#define IPSET_TYPE_REV_MAX   6 /* skbinfo support added */
#define IPSET_TYPE_REV_MIN   0
#define MTYPE   hash_netiface4
#define MTYPE   hash_netiface6
#define PF   4
#define PF   6
#define PHYSDEV (   dir)    (nf_bridge->dir ? nf_bridge->dir->name : "")
#define SRCDIR   (opt->flags & IPSET_DIM_TWO_SRC)
#define STREQ (   a,
 
)    (strcmp(a, b) == 0)

Function Documentation

IP_SET_MODULE_DESC ( "hash:net  ,
iface"  ,
IPSET_TYPE_REV_MIN  ,
IPSET_TYPE_REV_MAX   
)
MODULE_ALIAS ( "ip_set_hash:net  ,
iface"   
)
MODULE_AUTHOR ( "Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"  )
module_exit ( hash_netiface_fini  )
module_init ( hash_netiface_init  )
MODULE_LICENSE ( "GPL"  )