aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-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 b4d1cdd58f11..44e030eb6e75 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -308,7 +308,9 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
308 if (udph->check == 0) 308 if (udph->check == 0)
309 udph->check = CSUM_MANGLED_0; 309 udph->check = CSUM_MANGLED_0;
310 310
311 skb->nh.iph = iph = (struct iphdr *)skb_push(skb, sizeof(*iph)); 311 skb_push(skb, sizeof(*iph));
312 skb_reset_network_header(skb);
313 iph = skb->nh.iph;
312 314
313 /* iph->version = 4; iph->ihl = 5; */ 315 /* iph->version = 4; iph->ihl = 5; */
314 put_unaligned(0x45, (unsigned char *)iph); 316 put_unaligned(0x45, (unsigned char *)iph);