summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-22 23:50:57 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:11:13 -0800
commitdde1bc0e6f86183bc095d0774cd109f4edf66ea2 (patch)
treeb75823ba47c3047e5bf10acf7f3b207b43cb3cce /net/ipv4/ip_output.c
parentb5921910a1de4ba82add59154976c3dc7352c8c2 (diff)
downloadlinux-dde1bc0e6f86183bc095d0774cd109f4edf66ea2.tar.bz2
[NETNS]: Add namespace for ICMP replying code.
All needed API is done, the namespace is available when required from the device on the DST entry from the incoming packet. So, just replace init_net with proper namespace. Other protocols will follow. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 1725e0613982..18070ca65771 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1379,7 +1379,7 @@ void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *ar
.dport = tcp_hdr(skb)->source } },
.proto = sk->sk_protocol };
security_skb_classify_flow(skb, &fl);
- if (ip_route_output_key(&init_net, &rt, &fl))
+ if (ip_route_output_key(sk->sk_net, &rt, &fl))
return;
}