From 280fe2d4eecb2a546087fbf28bb45168f96d8d52 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 21 Sep 2020 20:13:07 +0200 Subject: 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 --- lib/ipset_hash_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ipset_hash_net.c') diff --git a/lib/ipset_hash_net.c b/lib/ipset_hash_net.c index a943ea6..1da95bf 100644 --- a/lib/ipset_hash_net.c +++ b/lib/ipset_hash_net.c @@ -560,6 +560,7 @@ static struct ipset_type ipset_hash_net7 = { IPSET_ARG_FORCEADD, IPSET_ARG_SKBINFO, IPSET_ARG_BUCKETSIZE, + IPSET_ARG_INITVAL, /* Ignored options: backward compatibilty */ IPSET_ARG_PROBES, IPSET_ARG_RESIZE, @@ -611,7 +612,7 @@ static struct ipset_type ipset_hash_net7 = { .usage = "where depending on the INET family\n" " IP is an IPv4 or IPv6 address (or hostname),\n" " CIDR is a valid IPv4 or IPv6 CIDR prefix.", - .description = "bucketsize support", + .description = "bucketsize, initval support", }; void _init(void); -- cgit v1.2.3