summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-21 03:08:13 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 06:27:20 +0100
commit5e57dff2c49956e24f27f9b6d2ec0db967680c39 (patch)
tree8374ba0b79ecac0107f5bc1a55992c8666a51ee0 /net/core
parent[NET]: net/sched annotations. (diff)
downloadlinux-5e57dff2c49956e24f27f9b6d2ec0db967680c39.tar.xz
linux-5e57dff2c49956e24f27f9b6d2ec0db967680c39.zip
[NETPOLL]: Another udp checksum mangling.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/netpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 8be3681d3d80..3c58846fcaa5 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));