netfilter: Allow calling into nat helper without skb_dst.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 10 Mar 2016 18:54:17 +0000 (10:54 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Mar 2016 22:47:27 +0000 (23:47 +0100)
commit264619055bd52bc2278af848472176642d759874
tree84b2db75456c646620d6050fe8e85ab4d46bc648
parentbfa3f9d7f3b349acea8982d2248e33a0ed84c687
netfilter: Allow calling into nat helper without skb_dst.

NAT checksum recalculation code assumes existence of skb_dst, which
becomes a problem for a later patch in the series ("openvswitch:
Interface with NAT.").  Simplify this by removing the check on
skb_dst, as the checksum will be dealt with later in the stack.

Suggested-by: Pravin Shelar <pshelar@nicira.com>
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nf_nat_l3proto_ipv4.c
net/ipv6/netfilter/nf_nat_l3proto_ipv6.c