]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: use a single nat bysource table for all namespaces
authorFlorian Westphal <fw@strlen.de>
Mon, 9 May 2016 14:24:31 +0000 (16:24 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 May 2016 14:45:49 +0000 (16:45 +0200)
commit5e91afea6bb6954568457d05d03c29ef616daeda
treedeb8b7212101d6c92d34ac1954b5f621ab6d1b95
parent791f2435cbc502a3ec07f8a756424fca28baf07c
netfilter: conntrack: use a single nat bysource table for all namespaces

We already include netns address in the hash, so we only need to use
net_eq in find_appropriate_src and can then put all entries into
same table.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netns/conntrack.h
net/netfilter/nf_nat_core.c