From: David S. Miller Date: Wed, 6 Sep 2006 13:42:02 +0000 (-0700) Subject: PKTGEN: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too. X-Git-Tag: v2.6.17.12~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee2abb104a850954eb54b2bf6579463fad146634;p=thirdparty%2Fkernel%2Fstable.git PKTGEN: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too. [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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index c23e9c06ee237..7db70d0ad7222 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -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);