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/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/session.c') 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, -- cgit v1.2.3