Lines Matching refs:iph

102 	struct iphdr *iph;  member
129 return qp->id == arg->iph->id && in ip4_frag_match()
130 qp->saddr == arg->iph->saddr && in ip4_frag_match()
131 qp->daddr == arg->iph->daddr && in ip4_frag_match()
132 qp->protocol == arg->iph->protocol && in ip4_frag_match()
146 qp->protocol = arg->iph->protocol; in ip4_frag_init()
147 qp->id = arg->iph->id; in ip4_frag_init()
148 qp->ecn = ip4_frag_ecn(arg->iph->tos); in ip4_frag_init()
149 qp->saddr = arg->iph->saddr; in ip4_frag_init()
150 qp->daddr = arg->iph->daddr; in ip4_frag_init()
154 inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, arg->vif, 1) : in ip4_frag_init()
213 const struct iphdr *iph; in ip_expire() local
227 iph = ip_hdr(head); in ip_expire()
228 err = ip_route_input_noref(head, iph->daddr, iph->saddr, in ip_expire()
229 iph->tos, head->dev); in ip_expire()
253 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find() argument
260 arg.iph = iph; in ip_find()
264 hash = ipqhashfn(iph->id, iph->saddr, iph->daddr, iph->protocol); in ip_find()
528 struct iphdr *iph; in ip_frag_reasm() local
619 iph = ip_hdr(head); in ip_frag_reasm()
620 iph->tot_len = htons(len); in ip_frag_reasm()
621 iph->tos |= ecn; in ip_frag_reasm()
633 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
635 iph->frag_off = 0; in ip_frag_reasm()
638 ip_send_check(iph); in ip_frag_reasm()
688 struct iphdr iph; in ip_check_defrag() local
697 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
700 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag()
703 len = ntohs(iph.tot_len); in ip_check_defrag()
704 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
707 if (ip_is_fragment(&iph)) { in ip_check_defrag()
710 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) in ip_check_defrag()