diff options
author | Chen-Li Tien <cltien@gmail.com> | 2006-09-06 19:34:53 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-09-06 19:34:53 +0200 |
commit | da56aea0bddc155f786594720ab91e36421cc51e (patch) | |
tree | 6124b1c319ca9fd6c508ba67623615974d54fa3c /net | |
parent | c1646ad43e8273c4748ce2d4be2ec71f9329dbbd (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')
-rw-r--r-- | net/core/pktgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index da16f8fd149..f6445303bda 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -1902,6 +1902,8 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev, skb->mac.raw = ((u8 *)iph) - 14; 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); |