Lines Matching defs:iph
136 const struct iphdr *iph;
177 iph = ip_hdr(head);
178 err = ip_route_input_noref(head, iph->daddr, iph->saddr,
179 iph->tos, head->dev);
205 static struct ipq *ip_find(struct net *net, struct iphdr *iph,
209 .saddr = iph->saddr,
210 .daddr = iph->daddr,
213 .id = iph->id,
214 .protocol = iph->protocol,
415 struct iphdr *iph;
444 iph = ip_hdr(skb);
445 iph->tot_len = htons(len);
446 iph->tos |= ecn;
458 iph->frag_off = htons(IP_DF);
460 iph->frag_off = 0;
463 ip_send_check(iph);
514 struct iphdr iph;
523 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0)
526 if (iph.ihl < 5 || iph.version != 4)
529 len = ntohs(iph.tot_len);
530 if (skb->len < netoff + len || len < (iph.ihl * 4))
533 if (ip_is_fragment(&iph)) {
536 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) {