aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/ipset/ip_set_hash.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-02 15:24:48 -0800
committerDavid S. Miller <davem@davemloft.net>2011-02-02 15:24:48 -0800
commit8fe73503fae8cb8f00c80dd6444c1ddcd19257bd (patch)
tree39cc6d38a628c445da7d52c006df6930a2c58411 /include/linux/netfilter/ipset/ip_set_hash.h
parentipv4: Rename fib_hash_* locals in fib_semantics.c (diff)
parentnetfilter: xtables: add device group match (diff)
downloadlinux-dev-8fe73503fae8cb8f00c80dd6444c1ddcd19257bd.tar.xz
linux-dev-8fe73503fae8cb8f00c80dd6444c1ddcd19257bd.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Diffstat (limited to 'include/linux/netfilter/ipset/ip_set_hash.h')
-rw-r--r--include/linux/netfilter/ipset/ip_set_hash.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_hash.h b/include/linux/netfilter/ipset/ip_set_hash.h
new file mode 100644
index 000000000000..b86f15c04524
--- /dev/null
+++ b/include/linux/netfilter/ipset/ip_set_hash.h
@@ -0,0 +1,26 @@
+#ifndef __IP_SET_HASH_H
+#define __IP_SET_HASH_H
+
+/* Hash type specific error codes */
+enum {
+ /* Hash is full */
+ IPSET_ERR_HASH_FULL = IPSET_ERR_TYPE_SPECIFIC,
+ /* Null-valued element */
+ IPSET_ERR_HASH_ELEM,
+ /* Invalid protocol */
+ IPSET_ERR_INVALID_PROTO,
+ /* Protocol missing but must be specified */
+ IPSET_ERR_MISSING_PROTO,
+};
+
+#ifdef __KERNEL__
+
+#define IPSET_DEFAULT_HASHSIZE 1024
+#define IPSET_MIMINAL_HASHSIZE 64
+#define IPSET_DEFAULT_MAXELEM 65536
+#define IPSET_DEFAULT_PROBES 4
+#define IPSET_DEFAULT_RESIZE 100
+
+#endif /* __KERNEL__ */
+
+#endif /* __IP_SET_HASH_H */