aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 8b22723d643..57a82445c46 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -296,7 +296,9 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
296 memcpy(skb->data, msg, len); 296 memcpy(skb->data, msg, len);
297 skb->len += len; 297 skb->len += len;
298 298
299 skb->h.uh = udph = (struct udphdr *) skb_push(skb, sizeof(*udph)); 299 skb_push(skb, sizeof(*udph));
300 skb_reset_transport_header(skb);
301 udph = udp_hdr(skb);
300 udph->source = htons(np->local_port); 302 udph->source = htons(np->local_port);
301 udph->dest = htons(np->remote_port); 303 udph->dest = htons(np->remote_port);
302 udph->len = htons(udp_len); 304 udph->len = htons(udp_len);