diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-21 20:13:07 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-21 20:13:07 +0200 |
commit | 280fe2d4eecb2a546087fbf28bb45168f96d8d52 (patch) | |
tree | cd2a8bb36656b4011718c8dd69e5b75e1967bf65 /lib/ipset_hash_netiface.c | |
parent | 00e8bd9bb72eb1357aab486e314b83f93dad0d2c (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_netiface.c')
-rw-r--r-- | lib/ipset_hash_netiface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ipset_hash_netiface.c b/lib/ipset_hash_netiface.c index 7a720c6..172c2a9 100644 --- a/lib/ipset_hash_netiface.c +++ b/lib/ipset_hash_netiface.c @@ -749,6 +749,7 @@ static struct ipset_type ipset_hash_netiface8 = { IPSET_ARG_FORCEADD, IPSET_ARG_SKBINFO, IPSET_ARG_BUCKETSIZE, + IPSET_ARG_INITVAL, IPSET_ARG_NONE, }, .need = 0, @@ -808,7 +809,7 @@ static struct ipset_type ipset_hash_netiface8 = { " IP is a valid IPv4 or IPv6 address (or hostname),\n" " CIDR is a valid IPv4 or IPv6 CIDR prefix.\n" " Adding/deleting multiple elements with IPv4 is supported.", - .description = "bucketsize support", + .description = "bucketsize, initval support", }; void _init(void); |