]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:30 +0000 (14:20 +0100)
commitaecab59d01e9a9a2a1d885a6d120570d359a5734
tree40651db1e556f43210238f0222749b55ad1869b0
parent4bb5e114b94dc297a3cbf9181e5d69df34952e91
netfilter: ipset: List timing out entries with "timeout 1" instead of zero

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit bd975e691486ba52790ba23cc9b4fecab7bc0d31 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/netfilter/ipset/ip_set_timeout.h