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