Commit 8b385946 authored by David S. Miller's avatar David S. Miller Committed by Adrian Bunk

[PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too.

Mirror the bug fix from fill_packet_ipv4()
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent da56aea0
...@@ -2179,6 +2179,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev, ...@@ -2179,6 +2179,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
skb->protocol = __constant_htons(ETH_P_IPV6); skb->protocol = __constant_htons(ETH_P_IPV6);
skb->dev = odev; skb->dev = odev;
skb->pkt_type = PACKET_HOST; skb->pkt_type = PACKET_HOST;
skb->nh.ipv6h = iph;
skb->h.uh = udph;
if (pkt_dev->nfrags <= 0) if (pkt_dev->nfrags <= 0)
pgh = (struct pktgen_hdr *)skb_put(skb, datalen); pgh = (struct pktgen_hdr *)skb_put(skb, datalen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment