aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-07 23:52:10 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-08-07 23:52:10 -0400
commit69d8c28c9578ce78b3dc1b9be36926d962282898 (patch)
tree99de9e5074b93c3aee6577fb817ebdfdcbf678b8 /net
parentaaf580601ff244df82324fff380ed6740f27ef03 (diff)
[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>
Diffstat (limited to 'net')
-rw-r--r--net/core/pktgen.c2
1 files changed, 2 insertions, 0 deletions
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,
2462 skb->protocol = protocol; 2462 skb->protocol = protocol;
2463 skb->dev = odev; 2463 skb->dev = odev;
2464 skb->pkt_type = PACKET_HOST; 2464 skb->pkt_type = PACKET_HOST;
2465 skb->nh.ipv6h = iph;
2466 skb->h.uh = udph;
2465 2467
2466 if (pkt_dev->nfrags <= 0) 2468 if (pkt_dev->nfrags <= 0)
2467 pgh = (struct pktgen_hdr *)skb_put(skb, datalen); 2469 pgh = (struct pktgen_hdr *)skb_put(skb, datalen);