From: Al Viro Date: Tue, 21 Nov 2006 02:08:13 +0000 (-0800) Subject: [NETPOLL]: Another udp checksum mangling. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e57dff2c49956e24f27f9b6d2ec0db967680c39;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 8be3681d3d8..3c58846fcaa 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));