netfilter: nat: avoid use of nf_conn_nat extension
authorFlorian Westphal <fw@strlen.de>
Tue, 28 Mar 2017 08:31:03 +0000 (10:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Apr 2017 20:01:42 +0000 (22:01 +0200)
commit6e699867f84c0f358fed233fe6162173aca28e04
tree28372ccf2da90f7faf02809c21e7a77c943c3478
parentcba81cc4c95fefa4805163bb19c0f43d2a8ca52c
netfilter: nat: avoid use of nf_conn_nat extension

successful insert into the bysource hash sets IPS_SRC_NAT_DONE status bit
so we can check that instead of presence of nat extension which requires
extra deref.

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