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/args.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/args.c')
-rw-r--r-- | lib/args.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 * |