summaryrefslogtreecommitdiffstats
path: root/lib/ipset_hash_ipport.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2020-09-21 20:13:07 +0200
committerJozsef Kadlecsik <kadlec@netfilter.org>2020-09-21 20:13:07 +0200
commit280fe2d4eecb2a546087fbf28bb45168f96d8d52 (patch)
treecd2a8bb36656b4011718c8dd69e5b75e1967bf65 /lib/ipset_hash_ipport.c
parent00e8bd9bb72eb1357aab486e314b83f93dad0d2c (diff)
Expose the initval hash parameter to userspace
It makes possible to reproduce exactly the same set after a save/restore. Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'lib/ipset_hash_ipport.c')
-rw-r--r--lib/ipset_hash_ipport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ipset_hash_ipport.c b/lib/ipset_hash_ipport.c
index cb8832e..288be10 100644
--- a/lib/ipset_hash_ipport.c
+++ b/lib/ipset_hash_ipport.c
@@ -533,6 +533,7 @@ static struct ipset_type ipset_hash_ipport6 = {
IPSET_ARG_FORCEADD,
IPSET_ARG_SKBINFO,
IPSET_ARG_BUCKETSIZE,
+ IPSET_ARG_INITVAL,
/* Ignored options: backward compatibilty */
IPSET_ARG_PROBES,
IPSET_ARG_RESIZE,
@@ -600,7 +601,7 @@ static struct ipset_type ipset_hash_ipport6 = {
" Adding/deleting multiple elements with TCP/SCTP/UDP/UDPLITE\n"
" port range is supported both for IPv4 and IPv6.",
.usagefn = ipset_port_usage,
- .description = "bucketsize support",
+ .description = "bucketsize, initval support",
};
void _init(void);