提交 5e57dff2 编写于 作者: A Al Viro 提交者: David S. Miller

[NETPOLL]: Another udp checksum mangling.

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 66c6f529
...@@ -296,7 +296,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len) ...@@ -296,7 +296,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
udp_len, IPPROTO_UDP, udp_len, IPPROTO_UDP,
csum_partial((unsigned char *)udph, udp_len, 0)); csum_partial((unsigned char *)udph, udp_len, 0));
if (udph->check == 0) if (udph->check == 0)
udph->check = -1; udph->check = CSUM_MANGLED_0;
skb->nh.iph = iph = (struct iphdr *)skb_push(skb, sizeof(*iph)); skb->nh.iph = iph = (struct iphdr *)skb_push(skb, sizeof(*iph));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册