Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40804
b: refs/heads/master
c: 8e365ee
h: refs/heads/master
v: v3
  • Loading branch information
Chris Lalancette authored and David S. Miller committed Nov 7, 2006
1 parent a799d92 commit 578c2e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da33e3eb4876c43b78fdc7b7068653239f28714a
refs/heads/master: 8e365eec04c86899fab5db0f49a9c98554069bd0
6 changes: 6 additions & 0 deletions trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
udph->dest = htons(np->remote_port);
udph->len = htons(udp_len);
udph->check = 0;
udph->check = csum_tcpudp_magic(htonl(np->local_ip),
htonl(np->remote_ip),
udp_len, IPPROTO_UDP,
csum_partial((unsigned char *)udph, udp_len, 0));
if (udph->check == 0)
udph->check = -1;

skb->nh.iph = iph = (struct iphdr *)skb_push(skb, sizeof(*iph));

Expand Down

0 comments on commit 578c2e2

Please sign in to comment.