--- linux-2.6.17.6/net/core/pktgen.c.orig 2006-07-15 15:00:43.000000000 -0400 +++ linux-2.6.17.6/net/core/pktgen.c 2006-08-07 14:50:09.000000000 -0400 @@ -2149,6 +2149,8 @@ static struct sk_buff *fill_packet_ipv4( 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);