netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ip_set_hash_gen.h File Reference
#include <linux/rcupdate.h>
#include <linux/jhash.h>
#include <linux/types.h>
#include <linux/netfilter/ipset/ip_set_timeout.h>
Include dependency graph for ip_set_hash_gen.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  hbucket
 
struct  htable
 
struct  net_prefixes
 
struct  htype
 

Macros

#define __ipset_dereference_protected(p, c)   rcu_dereference_protected(p, c)
 
#define ipset_dereference_protected(p, set)   __ipset_dereference_protected(p, spin_is_locked(&(set)->lock))
 
#define rcu_dereference_bh_nfnl(p)   rcu_dereference_bh_check(p, 1)
 
#define AHASH_INIT_SIZE   4
 
#define AHASH_MAX_SIZE   (3*AHASH_INIT_SIZE)
 
#define AHASH_MAX_TUNED   64
 
#define AHASH_MAX(h)   AHASH_MAX_SIZE
 
#define TUNE_AHASH_MAX(h, multi)
 
#define hbucket(h, i)   ((h)->bucket[i])
 
#define IPSET_NET_COUNT   1
 
#define NLEN(family)   0
 
#define mtype_data_equal   IPSET_TOKEN(MTYPE, _data_equal)
 
#define mtype_do_data_match(d)   1
 
#define mtype_data_set_flags   IPSET_TOKEN(MTYPE, _data_set_flags)
 
#define mtype_data_reset_elem   IPSET_TOKEN(MTYPE, _data_reset_elem)
 
#define mtype_data_reset_flags   IPSET_TOKEN(MTYPE, _data_reset_flags)
 
#define mtype_data_netmask   IPSET_TOKEN(MTYPE, _data_netmask)
 
#define mtype_data_list   IPSET_TOKEN(MTYPE, _data_list)
 
#define mtype_data_next   IPSET_TOKEN(MTYPE, _data_next)
 
#define mtype_elem   IPSET_TOKEN(MTYPE, _elem)
 
#define mtype_ahash_destroy   IPSET_TOKEN(MTYPE, _ahash_destroy)
 
#define mtype_ext_cleanup   IPSET_TOKEN(MTYPE, _ext_cleanup)
 
#define mtype_add_cidr   IPSET_TOKEN(MTYPE, _add_cidr)
 
#define mtype_del_cidr   IPSET_TOKEN(MTYPE, _del_cidr)
 
#define mtype_ahash_memsize   IPSET_TOKEN(MTYPE, _ahash_memsize)
 
#define mtype_flush   IPSET_TOKEN(MTYPE, _flush)
 
#define mtype_destroy   IPSET_TOKEN(MTYPE, _destroy)
 
#define mtype_gc_init   IPSET_TOKEN(MTYPE, _gc_init)
 
#define mtype_same_set   IPSET_TOKEN(MTYPE, _same_set)
 
#define mtype_kadt   IPSET_TOKEN(MTYPE, _kadt)
 
#define mtype_uadt   IPSET_TOKEN(MTYPE, _uadt)
 
#define mtype   MTYPE
 
#define mtype_add   IPSET_TOKEN(MTYPE, _add)
 
#define mtype_del   IPSET_TOKEN(MTYPE, _del)
 
#define mtype_test_cidrs   IPSET_TOKEN(MTYPE, _test_cidrs)
 
#define mtype_test   IPSET_TOKEN(MTYPE, _test)
 
#define mtype_uref   IPSET_TOKEN(MTYPE, _uref)
 
#define mtype_expire   IPSET_TOKEN(MTYPE, _expire)
 
#define mtype_resize   IPSET_TOKEN(MTYPE, _resize)
 
#define mtype_head   IPSET_TOKEN(MTYPE, _head)
 
#define mtype_list   IPSET_TOKEN(MTYPE, _list)
 
#define mtype_gc   IPSET_TOKEN(MTYPE, _gc)
 
#define mtype_variant   IPSET_TOKEN(MTYPE, _variant)
 
#define mtype_data_match   IPSET_TOKEN(MTYPE, _data_match)
 
#define HKEY_DATALEN   sizeof(struct mtype_elem)
 
#define HKEY(data, initval, htable_bits)
 
#define htype   HTYPE
 
#define ahash_data(n, i, dsize)   ((struct mtype_elem *)((n)->value + ((i) * (dsize))))
 

Functions

struct hbucket __attribute__ ((aligned))
 
 DECLARE_BITMAP (used, AHASH_MAX_TUNED)
 

Variables

struct rcu_head rcu
 
u8 size
 
u8 pos
 
unsigned char value [0]
 
struct htable __attribute__
 
static int const struct sk_buff * skb
 
static int const struct
sk_buff const struct
xt_action_param * 
par
 
static int const struct
sk_buff const struct
xt_action_param enum ipset_adt
adt struct ip_set_adt_opt
opt
 
static int struct nlattrtb []
 
static int struct nlattr enum
ipset_adt adt u32
lineno
 
static int struct nlattr enum
ipset_adt adt u32 u32 
flags
 
static int struct nlattr enum
ipset_adt adt u32 u32 bool 
retried
 

Macro Definition Documentation

#define __ipset_dereference_protected (   p,
 
)    rcu_dereference_protected(p, c)
#define ahash_data (   n,
  i,
  dsize 
)    ((struct mtype_elem *)((n)->value + ((i) * (dsize))))
#define AHASH_INIT_SIZE   4
#define AHASH_MAX (   h)    AHASH_MAX_SIZE
#define AHASH_MAX_SIZE   (3*AHASH_INIT_SIZE)
#define AHASH_MAX_TUNED   64
#define hbucket (   h,
 
)    ((h)->bucket[i])
#define HKEY (   data,
  initval,
  htable_bits 
)
Value:
(jhash2((u32 *)(data), HKEY_DATALEN/sizeof(u32), initval) \
& jhash_mask(htable_bits))
#define u32
Definition: jhash.h:4
#define jhash_mask(n)
Definition: jhash.h:32
#define HKEY_DATALEN
Definition: ip_set_hash_gen.h:242
enum nf_conntrack_query query const void * data
Definition: libnetfilter_conntrack.h:570
#define HKEY_DATALEN   sizeof(struct mtype_elem)
#define htype   HTYPE
#define ipset_dereference_protected (   p,
  set 
)    __ipset_dereference_protected(p, spin_is_locked(&(set)->lock))
#define IPSET_NET_COUNT   1
#define mtype   MTYPE
#define mtype_add   IPSET_TOKEN(MTYPE, _add)
#define mtype_add_cidr   IPSET_TOKEN(MTYPE, _add_cidr)
#define mtype_ahash_destroy   IPSET_TOKEN(MTYPE, _ahash_destroy)
#define mtype_ahash_memsize   IPSET_TOKEN(MTYPE, _ahash_memsize)
#define mtype_data_equal   IPSET_TOKEN(MTYPE, _data_equal)
#define mtype_data_list   IPSET_TOKEN(MTYPE, _data_list)
#define mtype_data_match   IPSET_TOKEN(MTYPE, _data_match)
#define mtype_data_netmask   IPSET_TOKEN(MTYPE, _data_netmask)
#define mtype_data_next   IPSET_TOKEN(MTYPE, _data_next)
#define mtype_data_reset_elem   IPSET_TOKEN(MTYPE, _data_reset_elem)
#define mtype_data_reset_flags   IPSET_TOKEN(MTYPE, _data_reset_flags)
#define mtype_data_set_flags   IPSET_TOKEN(MTYPE, _data_set_flags)
#define mtype_del   IPSET_TOKEN(MTYPE, _del)
#define mtype_del_cidr   IPSET_TOKEN(MTYPE, _del_cidr)
#define mtype_destroy   IPSET_TOKEN(MTYPE, _destroy)
#define mtype_do_data_match (   d)    1
#define mtype_elem   IPSET_TOKEN(MTYPE, _elem)
#define mtype_expire   IPSET_TOKEN(MTYPE, _expire)
#define mtype_ext_cleanup   IPSET_TOKEN(MTYPE, _ext_cleanup)
#define mtype_flush   IPSET_TOKEN(MTYPE, _flush)
#define mtype_gc   IPSET_TOKEN(MTYPE, _gc)
#define mtype_gc_init   IPSET_TOKEN(MTYPE, _gc_init)
#define mtype_head   IPSET_TOKEN(MTYPE, _head)
#define mtype_kadt   IPSET_TOKEN(MTYPE, _kadt)
#define mtype_list   IPSET_TOKEN(MTYPE, _list)
#define mtype_resize   IPSET_TOKEN(MTYPE, _resize)
#define mtype_same_set   IPSET_TOKEN(MTYPE, _same_set)
#define mtype_test   IPSET_TOKEN(MTYPE, _test)
#define mtype_test_cidrs   IPSET_TOKEN(MTYPE, _test_cidrs)
#define mtype_uadt   IPSET_TOKEN(MTYPE, _uadt)
#define mtype_uref   IPSET_TOKEN(MTYPE, _uref)
#define mtype_variant   IPSET_TOKEN(MTYPE, _variant)
#define NLEN (   family)    0
#define rcu_dereference_bh_nfnl (   p)    rcu_dereference_bh_check(p, 1)
#define TUNE_AHASH_MAX (   h,
  multi 
)

Function Documentation

struct hbucket __attribute__ ( (aligned)  )
__attribute__::DECLARE_BITMAP ( used  ,
AHASH_MAX_TUNED   
)

Variable Documentation

struct htable __attribute__
int struct nlattr enum ipset_adt adt u32* lineno

Referenced by ipset_cmd(), and ipset_session_lineno().

int const struct sk_buff const struct xt_action_param* par
u8 pos

Referenced by dump_entry(), and main().

struct rcu_head rcu
int struct nlattr enum ipset_adt adt u32 u32 bool retried
enum nf_conntrack_query qt const void void unsigned int size

Referenced by __snprintf_addr_xml(), __snprintf_address(), __snprintf_connlabels(), __snprintf_conntrack(), __snprintf_conntrack_default(), __snprintf_conntrack_xml(), __snprintf_expect(), __snprintf_expect_default(), __snprintf_expect_xml(), __snprintf_localtime_xml(), __snprintf_proto(), __snprintf_proto_xml(), bitmask_dup(), build_template_for_bitmask(), cache_create(), cache_stats(), cache_stats_extended(), command_default(), concat_type_alloc(), do_command(), do_command4(), do_command6(), do_commandarp(), dump_traffic_stats(), ebt_register_match(), ebt_register_target(), ebt_register_watcher(), ebt_reinit_extensions(), fork_process_dump(), hashtable_create(), interval_map_decompose(), ipset_print_comment(), ipset_print_data(), ipset_print_elem(), ipset_print_ether(), ipset_print_iface(), ipset_print_ip(), ipset_print_mark(), ipset_print_name(), ipset_print_port(), ipset_print_proto_port(), ipset_print_skbmark(), ipset_print_skbprio(), mcast_snprintf_stats(), mcast_snprintf_stats2(), mpz_export(), mpz_import(), msgb_alloc(), nfct_attr_is_set_array(), nfct_query(), nfct_send(), nfexp_query(), nfexp_send(), nflog_snprintf_xml(), nfnl_nft_byteorder_set_size(), nfnl_nft_data_dump(), nfnl_rcvbufsiz(), nfnl_set_rcv_buffer_size(), nfq_snprintf_xml(), nft_chain_snprintf(), nft_gen_snprintf(), nft_parse_target(), nft_rule_expr_snprintf(), nft_rule_snprintf(), nft_set_elem_attr_get_str(), nft_set_elem_attr_get_u32(), nft_set_elem_snprintf(), nft_set_snprintf(), nft_table_snprintf(), nl_addr_build(), nl_data_alloc(), nl_data_append(), nl_object_clone(), nla_memcmp(), queue_object_new(), queue_stats_show(), rt_symbol_table_init(), rtnl_tc_build_rate_table(), symbol_table_print(), tcp_snprintf_stats(), tcp_snprintf_stats2(), udp_snprintf_stats(), udp_snprintf_stats2(), and vector_create().

int const struct sk_buff* skb