]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: List timing out entries with "timeout 1" instead of zero
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 31 May 2018 16:45:21 +0000 (18:45 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 6 Jun 2018 12:00:48 +0000 (14:00 +0200)
commit931a86e43716ab444bcf838c5604b2a4b3e6746d
tree6beb30d1d7c50b358febb0bdfb2d2643eaba4d2b
parentcab0f6995b8d847b7e66e145e0d48ece28c5ebc9
netfilter: ipset: List timing out entries with "timeout 1" instead of zero

When listing sets with timeout support, there's a probability that
just timing out entries with "0" timeout value is listed/saved.
However when restoring the saved list, the zero timeout value means
permanent elelements.

The new behaviour is that timing out entries are listed with "timeout 1"
instead of zero.

Fixes netfilter bugzilla #1258.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
include/linux/netfilter/ipset/ip_set_timeout.h