Lines Matching defs:iph
136 const struct iphdr *iph;
176 iph = ip_hdr(head);
177 err = ip_route_input_noref(head, iph->daddr, iph->saddr,
178 iph->tos, head->dev);
204 static struct ipq *ip_find(struct net *net, struct iphdr *iph,
208 .saddr = iph->saddr,
209 .daddr = iph->daddr,
212 .id = iph->id,
213 .protocol = iph->protocol,
407 struct iphdr *iph;
436 iph = ip_hdr(skb);
437 iph->tot_len = htons(len);
438 iph->tos |= ecn;
450 iph->frag_off = htons(IP_DF);
452 iph->frag_off = 0;
455 ip_send_check(iph);
506 struct iphdr iph;
515 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0)
518 if (iph.ihl < 5 || iph.version != 4)
521 len = ntohs(iph.tot_len);
522 if (skb->len < netoff + len || len < (iph.ihl * 4))
525 if (ip_is_fragment(&iph)) {
528 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) {