From de340a7f1a9cf21931d94ea8814545c4b2d172b0 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 21 Sep 2020 10:21:39 +0200 Subject: Add bucketsize parameter to all hash types The parameter defines the upper limit in any hash bucket at adding new entries from userspace - if the limit would be exceeded, ipset doubles the hash size and rehashes. It means the set may consume more memory but gives faster evaluation at matching in the set. Signed-off-by: Jozsef Kadlecsik --- lib/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/print.c') diff --git a/lib/print.c b/lib/print.c index bafe58f..d1d5a20 100644 --- a/lib/print.c +++ b/lib/print.c @@ -945,7 +945,7 @@ ipset_print_data(char *buf, unsigned int len, case IPSET_OPT_MAXELEM: case IPSET_OPT_MARKMASK: case IPSET_OPT_NETMASK: - case IPSET_OPT_PROBES: + case IPSET_OPT_BUCKETSIZE: case IPSET_OPT_RESIZE: case IPSET_OPT_TIMEOUT: case IPSET_OPT_REFERENCES: -- cgit v1.2.3