ipv4: Pass struct net into ip_defrag and ip_check_defrag
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 9 Oct 2015 18:44:54 +0000 (13:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:44:16 +0000 (19:44 -0700)
commit19bcf9f203c82c2028f5a0881b1f0690e3207190
treea3d9cbc354d0c464f8485b298f25bab4bae7a73b
parent37fcbab61b8ecf75cb5fd81e5809b71c270f9632
ipv4: Pass struct net into ip_defrag and ip_check_defrag

The function ip_defrag is called on both the input and the output
paths of the networking stack.  In particular conntrack when it is
tracking outbound packets from the local machine calls ip_defrag.

So add a struct net parameter and stop making ip_defrag guess which
network namespace it needs to defragment packets in.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/net/ip.h
net/ipv4/ip_fragment.c
net/ipv4/ip_input.c
net/ipv4/netfilter/nf_defrag_ipv4.c
net/netfilter/ipvs/ip_vs_core.c
net/openvswitch/conntrack.c
net/packet/af_packet.c