PKTGEN: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 6 Sep 2006 13:42:02 +0000 (06:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Sep 2006 21:51:39 +0000 (14:51 -0700)
[PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too.

Mirror the bug fix from fill_packet_ipv4()

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/pktgen.c

index c23e9c06ee237203e792f421aabf6a3005996009..7db70d0ad7222726718bf8a8a5398eaf123accff 100644 (file)
@@ -2460,6 +2460,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);