Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69d8c28c authored by David S. Miller's avatar David S. Miller
Browse files

[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>
parent aaf58060
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2462,6 +2462,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
	skb->protocol = protocol;
	skb->dev = odev;
	skb->pkt_type = PACKET_HOST;
	skb->nh.ipv6h = iph;
	skb->h.uh = udph;

	if (pkt_dev->nfrags <= 0)
		pgh = (struct pktgen_hdr *)skb_put(skb, datalen);