summaryrefslogtreecommitdiffstats
path: root/lib/session.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/session.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/session.c')
-rw-r--r--lib/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/session.c b/lib/session.c
index 8416308..b088bc8 100644
--- a/lib/session.c
+++ b/lib/session.c
@@ -418,9 +418,9 @@ static const struct ipset_attr_policy create_attrs[] = {
.type = MNL_TYPE_U32,
.opt = IPSET_OPT_CADT_FLAGS,
},
- [IPSET_ATTR_GC] = {
+ [IPSET_ATTR_INITVAL] = {
.type = MNL_TYPE_U32,
- .opt = IPSET_OPT_GC,
+ .opt = IPSET_OPT_INITVAL,
},
[IPSET_ATTR_HASHSIZE] = {
.type = MNL_TYPE_U32,