diff options
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index ee82364c8f3..160d4f01c46 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -2392,7 +2392,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev, | |||
2392 | skb->dev = odev; | 2392 | skb->dev = odev; |
2393 | skb->pkt_type = PACKET_HOST; | 2393 | skb->pkt_type = PACKET_HOST; |
2394 | skb->nh.raw = (unsigned char *)iph; | 2394 | skb->nh.raw = (unsigned char *)iph; |
2395 | skb->h.uh = udph; | 2395 | skb->h.raw = (unsigned char *)udph; |
2396 | 2396 | ||
2397 | if (pkt_dev->nfrags <= 0) | 2397 | if (pkt_dev->nfrags <= 0) |
2398 | pgh = (struct pktgen_hdr *)skb_put(skb, datalen); | 2398 | pgh = (struct pktgen_hdr *)skb_put(skb, datalen); |
@@ -2737,7 +2737,7 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev, | |||
2737 | skb->dev = odev; | 2737 | skb->dev = odev; |
2738 | skb->pkt_type = PACKET_HOST; | 2738 | skb->pkt_type = PACKET_HOST; |
2739 | skb->nh.raw = (unsigned char *)iph; | 2739 | skb->nh.raw = (unsigned char *)iph; |
2740 | skb->h.uh = udph; | 2740 | skb->h.raw = (unsigned char *)udph; |
2741 | 2741 | ||
2742 | if (pkt_dev->nfrags <= 0) | 2742 | if (pkt_dev->nfrags <= 0) |
2743 | pgh = (struct pktgen_hdr *)skb_put(skb, datalen); | 2743 | pgh = (struct pktgen_hdr *)skb_put(skb, datalen); |