summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-09-06 19:35:53 +0200
committerAdrian Bunk <bunk@stusta.de>2006-09-06 19:35:53 +0200
commit8b385946d47de12d8531c3e2abf69e5d5bff2720 (patch)
tree1fb6b5c22bf26033cdd5e5dc6c9a4228dfd3d550
parentda56aea0bddc155f786594720ab91e36421cc51e (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> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-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 f6445303bda0..47d0c28ae390 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2179,6 +2179,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
skb->protocol = __constant_htons(ETH_P_IPV6);
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);