diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-09-06 06:42:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-08 14:51:39 -0700 |
commit | ee2abb104a850954eb54b2bf6579463fad146634 (patch) | |
tree | 8b69a5a72cd107a899fe94f003342a7990543b40 /net | |
parent | d6b7fe9e1d58514758c6dfe54f949333e830485e (diff) |
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 <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/pktgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index c23e9c06ee2..7db70d0ad72 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); |