[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1321322987-16042-1-git-send-email-roy.qing.li@gmail.com>
Date: Tue, 15 Nov 2011 10:09:47 +0800
From: roy.qing.li@...il.com
To: netdev@...r.kernel.org
Subject: [PATCH] ipv4: return NET_RX_DROP when arp_rcv drops the received packet.
From: RongQing.Li <roy.qing.li@...il.com>
return NET_RX_DROP when arp_rcv drops the received packet.
Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
---
net/ipv4/arp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index d732827..9967385 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -969,7 +969,7 @@ static int arp_rcv(struct sk_buff *skb, struct net_device *dev,
freeskb:
kfree_skb(skb);
out_of_mem:
- return 0;
+ return NET_RX_DROP;
}
/*
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists