aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorMartynas Pumputis <martynas@weave.works>2018-07-02 16:52:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-07-18 11:26:38 +0200
commited07d9a021df6da53456663a76999189badc432a (patch)
tree71792f8056beb0e7b8ba7192ef437bf2debbc97c /include/net/ip_vs.h
parentnetfilter: nf_conncount: Add list lock and gc worker, and RCU for init tree search (diff)
downloadlinux-dev-ed07d9a021df6da53456663a76999189badc432a.tar.xz
linux-dev-ed07d9a021df6da53456663a76999189badc432a.zip
netfilter: nf_conntrack: resolve clash for matching conntracks
This patch enables the clash resolution for NAT (disabled in "590b52e10d41") if clashing conntracks match (i.e. both tuples are equal) and a protocol allows it. The clash might happen for a connections-less protocol (e.g. UDP) when two threads in parallel writes to the same socket and consequent calls to "get_unique_tuple" return the same tuples (incl. reply tuples). In this case it is safe to perform the resolution, as the losing CT describes the same mangling as the winning CT, so no modifications to the packet are needed, and the result of rules traversal for the loser's packet stays valid. Signed-off-by: Martynas Pumputis <martynas@weave.works> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/ip_vs.h')
0 files changed, 0 insertions, 0 deletions