Skip to content

Commit

Permalink
[NETPOLL]: Another udp checksum mangling.
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 66c6f52 commit 5e57dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 5e57dff

Please sign in to comment.