From: Chen-Li Tien Date: Wed, 6 Sep 2006 17:34:53 +0000 (+0200) Subject: [PKTGEN]: Fix oops when used with balance-tlb bonding X-Git-Tag: v2.6.16.29-rc1~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da56aea0bddc155f786594720ab91e36421cc51e;p=karo-tx-linux.git [PKTGEN]: Fix oops when used with balance-tlb bonding Signed-off-by: Chen-Li Tien Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index da16f8fd1494..f6445303bda0 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);