Re: 2.4.0-pre3+zerocopy: weird messages

David S. Miller
2001-01-14T11:33:50Z

Petru Paler writes:
> > Oh, I think I know why this happens. Can you add this patch, and next
> > time the UDP bad csum message appears, tell me if it says "UDP packet
> > with bad csum was fragmented." in the next line of your syslog
> > messages? Thanks.
>
> Sure, but I also need the actual patch :)

Duh, here it is :-)

--- net/ipv4/udp.c.~1~ Thu Jan 11 10:20:40 2001
+++ net/ipv4/udp.c Sun Jan 14 02:58:07 2001
@@ -855,6 +855,8 @@
if (!udp_check(uh, ulen, saddr, daddr, skb->csum))
return 0;
NETDEBUG(printk(KERN_DEBUG "udp v4 hw csum failure.\n"));
+ if (skb_shinfo(skb)->frag_list != NULL)
+ printk(KERN_DEBUG "UDP packet with bad csum was fragmented.\n");
skb->ip_summed = CHECKSUM_NONE;
}
if (skb->ip_summed != CHECKSUM_UNNECESSARY)