summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-08 05:52:10 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-08-08 05:52:10 +0200
commit69d8c28c9578ce78b3dc1b9be36926d962282898 (patch)
tree99de9e5074b93c3aee6577fb817ebdfdcbf678b8 /net
parent[PKTGEN]: Fix oops when used with balance-tlb bonding (diff)
downloadlinux-69d8c28c9578ce78b3dc1b9be36926d962282898.tar.xz
linux-69d8c28c9578ce78b3dc1b9be36926d962282898.zip
[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,
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);