Lines Matching refs:iph
245 struct iphdr *iph;
257 iph = (struct iphdr*)skb_put(skb, sizeof( struct iphdr));
263 datalen = pkt_size-14-20-8; /* Eth + IPh + UDPh */
272 iph->ihl=5;
273 iph->version=4;
274 iph->ttl=3;
275 iph->tos=0;
276 iph->protocol = IPPROTO_UDP; /* UDP */
277 iph->saddr = saddr;
278 iph->daddr = in_aton(pg_dst);
279 iph->frag_off = 0;
281 iph->tot_len = htons(iplen);
282 iph->check = 0;
283 iph->check = ip_fast_csum((void *)iph, iph->ihl);
285 skb->mac.raw = ((u8*)iph) - 14;