projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b34a95e
)
[NETNS][ICMP]: Build fix for NET_NS=n case (dev->nd_net is omitted).
author
Pavel Emelyanov
<
[email protected]
>
Wed, 26 Mar 2008 09:19:25 +0000
(
02:19
-0700)
committer
David S. Miller
<
[email protected]
>
Wed, 26 Mar 2008 09:19:25 +0000
(
02:19
-0700)
Signed-off-by: Pavel Emelyanov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/icmp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/icmp.c
b/net/ipv4/icmp.c
index 7049b3f5f3cc2de2150eabf29168158224f1207e..3697e05283179786a9ab49109ccbebb80b47b53b 100644
(file)
--- a/
net/ipv4/icmp.c
+++ b/
net/ipv4/icmp.c
@@
-821,7
+821,7
@@
static void icmp_echo(struct sk_buff *skb)
{
struct net *net;
- net =
skb->dst->dev->nd_net
;
+ net =
dev_net(skb->dst->dev)
;
if (!net->ipv4.sysctl_icmp_echo_ignore_all) {
struct icmp_bxm icmp_param;
@@
-1027,7
+1027,7
@@
int icmp_rcv(struct sk_buff *skb)
if (rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST)) {
struct net *net;
- net =
rt->u.dst.dev->nd_net
;
+ net =
dev_net(rt->u.dst.dev)
;
/*
* RFC 1122: 3.2.2.6 An ICMP_ECHO to broadcast MAY be
* silently ignored (we let user decide with a sysctl).