From: David S. Miller Date: Tue, 8 Aug 2006 03:52:10 +0000 (-0700) Subject: [PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too. X-Git-Tag: MMI-PSA29.97-13-9~47907^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69d8c28c9578ce78b3dc1b9be36926d962282898;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index b1743375eb6d..6a7320b39ed0 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -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);