aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r--net/ipv4/ip_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index 97069399d864..41d8964591e7 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -382,6 +382,9 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
382 struct iphdr *iph; 382 struct iphdr *iph;
383 u32 len; 383 u32 len;
384 384
385 if (dev->nd_net != &init_net)
386 goto drop;
387
385 /* When the interface is in promisc. mode, drop all the crap 388 /* When the interface is in promisc. mode, drop all the crap
386 * that it receives, do not try to analyse it. 389 * that it receives, do not try to analyse it.
387 */ 390 */