Zhang Shengju 8dfd329fbc arp: correct return value of arp_rcv
Currently, arp_rcv() always return zero on a packet delivery upcall.

To make its behavior more compliant with the way this API should be
used, this patch changes this to let it return NET_RX_SUCCESS when the
packet is proper handled, and NET_RX_DROP otherwise.

v1->v2:
If sanity check is failed, call kfree_skb() instead of consume_skb(), then
return the correct return value.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-07 14:55:04 -05:00
..
2015-03-02 16:43:41 -05:00
2015-11-30 14:47:33 -05:00
2016-03-01 17:36:47 -05:00
2015-10-13 17:42:34 +02:00
2016-02-04 18:26:08 +01:00
2016-03-02 15:00:55 -05:00
2015-11-23 14:56:15 -05:00
2016-03-07 14:55:04 -05:00
2016-03-03 17:26:18 -05:00
2015-10-23 03:05:19 -07:00
2016-02-21 22:00:28 -05:00
2016-01-04 21:48:15 -05:00