Lines Matching refs:iph
127 const struct iphdr *iph; in ip_expire() local
168 iph = ip_hdr(head); in ip_expire()
169 reason = ip_route_input_noref(head, iph->daddr, iph->saddr, in ip_expire()
170 ip4h_dscp(iph), head->dev); in ip_expire()
197 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find() argument
201 .saddr = iph->saddr, in ip_find()
202 .daddr = iph->daddr, in ip_find()
205 .id = iph->id, in ip_find()
206 .protocol = iph->protocol, in ip_find()
409 struct iphdr *iph; in ip_frag_reasm() local
438 iph = ip_hdr(skb); in ip_frag_reasm()
439 iph->tot_len = htons(len); in ip_frag_reasm()
440 iph->tos |= ecn; in ip_frag_reasm()
452 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
454 iph->frag_off = 0; in ip_frag_reasm()
457 ip_send_check(iph); in ip_frag_reasm()
510 struct iphdr iph; in ip_check_defrag() local
519 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
522 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag()
525 len = ntohs(iph.tot_len); in ip_check_defrag()
526 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
529 if (ip_is_fragment(&iph)) { in ip_check_defrag()
532 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) { in ip_check_defrag()