aboutsummaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorChen-Li Tien <cltien@gmail.com>2006-09-05 22:15:08 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-08 14:51:39 -0700
commitf3658cfac5012abbb8bed0bb027983e1cdf168bc (patch)
tree037f0e39dee28dc1e0c1347b8245a8808304e8d0 /net/core
parentee2abb104a850954eb54b2bf6579463fad146634 (diff)
PKTGEN: Fix oops when used with balance-tlb bonding
Signed-off-by: Chen-Li Tien <cltien@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net/core')
-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 7db70d0ad72..b916b7fe299 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2149,6 +2149,8 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
skb->mac.raw = ((u8 *) iph) - 14 - pkt_dev->nr_labels*sizeof(u32);
skb->dev = odev;
skb->pkt_type = PACKET_HOST;
+ skb->nh.iph = iph;
+ skb->h.uh = udph;
if (pkt_dev->nfrags <= 0)
pgh = (struct pktgen_hdr *)skb_put(skb, datalen);