* [IPV6 2.4] UDPv6: checksum
@ 2004-06-15 15:04 YOSHIFUJI Hideaki / 吉藤英明
2004-06-16 4:08 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2004-06-15 15:04 UTC (permalink / raw)
To: davem; +Cc: netdev, yoshfuji
Hello.
We always need to check UDPv6 checksum because it is mandatory.
This patch is for 2.4.
Thanks.
===== net/ipv6/udp.c 1.14 vs edited =====
--- 1.14/net/ipv6/udp.c 2004-02-25 17:19:02 +09:00
+++ edited/net/ipv6/udp.c 2004-06-15 23:45:18 +09:00
@@ -521,8 +521,7 @@
static inline int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
{
-#if defined(CONFIG_FILTER)
- if (sk->filter && skb->ip_summed != CHECKSUM_UNNECESSARY) {
+ if (skb->ip_summed != CHECKSUM_UNNECESSARY) {
if ((unsigned short)csum_fold(skb_checksum(skb, 0, skb->len, skb->csum))) {
UDP6_INC_STATS_BH(UdpInErrors);
IP6_INC_STATS_BH(Ip6InDiscards);
@@ -531,7 +530,6 @@
}
skb->ip_summed = CHECKSUM_UNNECESSARY;
}
-#endif
if (sock_queue_rcv_skb(sk,skb)<0) {
UDP6_INC_STATS_BH(UdpInErrors);
IP6_INC_STATS_BH(Ip6InDiscards);
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [IPV6 2.4] UDPv6: checksum
2004-06-15 15:04 [IPV6 2.4] UDPv6: checksum YOSHIFUJI Hideaki / 吉藤英明
@ 2004-06-16 4:08 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-06-16 4:08 UTC (permalink / raw)
To: yoshfuji; +Cc: netdev
On Wed, 16 Jun 2004 00:04:49 +0900 (JST)
YOSHIFUJI Hideaki / ^[$B5HF#1QL@^[(B <yoshfuji@linux-ipv6.org> wrote:
> We always need to check UDPv6 checksum because it is mandatory.
> This patch is for 2.4.
Both 2.4.x and 2.6.x versions applied, thanks a lot.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-16 4:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-15 15:04 [IPV6 2.4] UDPv6: checksum YOSHIFUJI Hideaki / 吉藤英明
2004-06-16 4:08 ` David S. 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).