From: Al Viro Date: Tue, 21 Nov 2006 02:08:13 +0000 (-0800) Subject: [NETPOLL]: Another udp checksum mangling. X-Git-Tag: v2.6.20-rc1~34^2~40^2~175 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e57dff2c49956e24f27f9b6d2ec0db967680c39;p=linux-2.6 [NETPOLL]: Another udp checksum mangling. Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 8be3681d3d..3c58846fca 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -296,7 +296,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len) udp_len, IPPROTO_UDP, csum_partial((unsigned char *)udph, udp_len, 0)); if (udph->check == 0) - udph->check = -1; + udph->check = CSUM_MANGLED_0; skb->nh.iph = iph = (struct iphdr *)skb_push(skb, sizeof(*iph));