linux/net/netfilter
Vishwanath Pai 7f4f7dd441 netfilter: ipset: ipset list may return wrong member count for set with timeout
Simple testcase:

$ ipset create test hash:ip timeout 5
$ ipset add test 1.2.3.4
$ ipset add test 1.2.2.2
$ sleep 5

$ ipset l
Name: test
Type: hash:ip
Revision: 5
Header: family inet hashsize 1024 maxelem 65536 timeout 5
Size in memory: 296
References: 0
Number of entries: 2
Members:

We return "Number of entries: 2" but no members are listed. That is
because mtype_list runs "ip_set_timeout_expired" and does not list the
expired entries, but set->elements is never upated (until mtype_gc
cleans it up later).

Reviewed-by: Joshua Hunt <johunt@akamai.com>
Signed-off-by: Vishwanath Pai <vpai@akamai.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-09-18 17:35:32 +02:00
..
2017-08-28 18:05:50 +02:00
2017-08-28 18:05:50 +02:00
2017-08-19 13:09:31 +02:00
2017-05-02 10:16:04 -04:00
2011-07-01 16:11:15 -07:00
2011-07-01 16:11:15 -07:00
2017-04-15 11:51:33 +02:00
2015-05-14 13:00:27 +02:00
2017-07-25 12:31:37 -07:00
2016-12-25 17:21:22 +01:00