* [PATCH]ipv6:When we droped a package,we should return NET_RX_DROP instead of 0
@ 2008-08-29 7:40 Yang Hongyang
2008-08-29 21:07 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yang Hongyang @ 2008-08-29 7:40 UTC (permalink / raw)
To: David S. Miller, netdev
When we droped a package,we should return NET_RX_DROP instead of 0
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
---
net/ipv6/raw.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 01d4767..e53e493 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;
}
}
--
1.5.3.8
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH]ipv6:When we droped a package,we should return NET_RX_DROP instead of 0
2008-08-29 7:40 [PATCH]ipv6:When we droped a package,we should return NET_RX_DROP instead of 0 Yang Hongyang
@ 2008-08-29 21:07 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-08-29 21:07 UTC (permalink / raw)
To: yanghy; +Cc: netdev
From: Yang Hongyang <yanghy@cn.fujitsu.com>
Date: Fri, 29 Aug 2008 15:40:17 +0800
> When we droped a package,we should return NET_RX_DROP instead of 0
>
> Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-29 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 7:40 [PATCH]ipv6:When we droped a package,we should return NET_RX_DROP instead of 0 Yang Hongyang
2008-08-29 21:07 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).