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/args.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/args.c') diff --git a/lib/args.c b/lib/args.c index ab1022e..bab3b13 100644 --- a/lib/args.c +++ b/lib/args.c @@ -292,6 +292,14 @@ static const struct ipset_arg ipset_args[] = { .print = ipset_print_number, .help = "[bucketsize VALUE]", }, + [IPSET_ARG_INITVAL] = { + .name = { "initval", NULL }, + .has_arg = IPSET_MANDATORY_ARG, + .opt = IPSET_OPT_INITVAL, + .parse = ipset_parse_uint32, + .print = ipset_print_hexnumber, + .help = "[initval VALUE]", + }, }; const struct ipset_arg * -- cgit v1.2.3