[IPV6] UDPv6: checksum

From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2004-06-15 15:00:10

Hello.

We always need to check UDPv6 checksum because it is mandatory.

Thanks.

===== net/ipv6/udp.c 1.64 vs edited =====
--- 1.64/net/ipv6/udp.c	2004-06-10 05:39:26 +09:00
+++ edited/net/ipv6/udp.c	2004-06-15 23:43:42 +09:00
@@ -507,7 +507,7 @@
 		return -1;
 	}
 
-	if (sk->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);
 			kfree_skb(skb);

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help