summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorYi-Hung Wei <yihung.wei@gmail.com>2018-07-03 03:33:40 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-07-18 12:26:32 +0300
commitcb2b36f5a97df76f547fcc4ab444a02522fb6c96 (patch)
tree986120552e919158fb4cbca0d3e43903e577860e /init
parent2a406e8ac7c3e7e96b94d6c0765d5a4641970446 (diff)
downloadlinux-cb2b36f5a97df76f547fcc4ab444a02522fb6c96.tar.xz
netfilter: nf_conncount: Switch to plain list
Original patch is from Florian Westphal. This patch switches from hlist to plain list to store the list of connections with the same filtering key in nf_conncount. With the plain list, we can insert new connections at the tail, so over time the beginning of list holds long-running connections and those are expired, while the newly creates ones are at the end. Later on, we could probably move checked ones to the end of the list, so the next run has higher chance to reclaim stale entries in the front. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions