summaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
authorChen-Li Tien <cltien@gmail.com>2006-08-07 20:49:07 -0700
committerDavid S. Miller <davem@davemloft.net>2006-08-07 20:49:07 -0700
commitaaf580601ff244df82324fff380ed6740f27ef03 (patch)
treebe59a493781fddb2f0201de3d5e335524bbd1959 /net/core/pktgen.c
parent8d1502de27c46b365b5c86e17d173083d3d6c9ac (diff)
downloadop-kernel-dev-aaf580601ff244df82324fff380ed6740f27ef03.zip
op-kernel-dev-aaf580601ff244df82324fff380ed6740f27ef03.tar.gz
[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>
Diffstat (limited to 'net/core/pktgen.c')
-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 67ed14d..b174337 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);
OpenPOWER on IntegriCloud