Skip to contentSkip to conversation

ipv6:When we droped a package,we should return NET_RX_DROP instead of 0

PATCH Applied Yang Hongyang 2 participants 2 messages Aug 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6:When we droped a package,we should return NET_RX_DROP instead of 0

When we droped a package,we should return NET_RX_DROP instead of 0

---
 net/ipv6/raw.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
net/ipv6/raw.c +3 -3
index 01d4767..e53e493 100644
@@ -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;
 		}
 	}
 
Signature · 1 line
1.5.3.8