From: Yang Hongyang Date: Fri, 29 Aug 2008 21:06:51 +0000 (-0700) Subject: ipv6: When we droped a packet, we should return NET_RX_DROP instead of 0 X-Git-Tag: MMI-PSA29.97-13-9~32034^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cc76caa98b092a8fb3e7b4303c70f847db0651f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ipv6: When we droped a packet, we should return NET_RX_DROP instead of 0 Signed-off-by: Yang Hongyang Signed-off-by: David S. Miller --- diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 01d47674f7e5..e53e493606c5 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -377,14 +377,14 @@ static inline int rawv6_rcv_skb(struct sock * sk, struct sk_buff * skb) skb_checksum_complete(skb)) { atomic_inc(&sk->sk_drops); kfree_skb(skb); - return 0; + return NET_RX_DROP; } /* Charge it to the socket. */ if (sock_queue_rcv_skb(sk,skb)<0) { atomic_inc(&sk->sk_drops); kfree_skb(skb); - return 0; + return NET_RX_DROP; } return 0; @@ -429,7 +429,7 @@ int rawv6_rcv(struct sock *sk, struct sk_buff *skb) if (skb_checksum_complete(skb)) { atomic_inc(&sk->sk_drops); kfree_skb(skb); - return 0; + return NET_RX_DROP; } }