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