Lines Matching refs:iph

99 	struct iphdr *iph;  member
125 return qp->id == arg->iph->id && in ip4_frag_match()
126 qp->saddr == arg->iph->saddr && in ip4_frag_match()
127 qp->daddr == arg->iph->daddr && in ip4_frag_match()
128 qp->protocol == arg->iph->protocol && in ip4_frag_match()
141 qp->protocol = arg->iph->protocol; in ip4_frag_init()
142 qp->id = arg->iph->id; in ip4_frag_init()
143 qp->ecn = ip4_frag_ecn(arg->iph->tos); in ip4_frag_init()
144 qp->saddr = arg->iph->saddr; in ip4_frag_init()
145 qp->daddr = arg->iph->daddr; in ip4_frag_init()
148 inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, 1) : NULL; in ip4_frag_init()
197 const struct iphdr *iph; in ip_expire() local
211 iph = ip_hdr(head); in ip_expire()
212 err = ip_route_input_noref(head, iph->daddr, iph->saddr, in ip_expire()
213 iph->tos, head->dev); in ip_expire()
239 static struct ipq *ip_find(struct net *net, struct iphdr *iph, u32 user) in ip_find() argument
245 arg.iph = iph; in ip_find()
248 hash = ipqhashfn(iph->id, iph->saddr, iph->daddr, iph->protocol); in ip_find()
506 struct iphdr *iph; in ip_frag_reasm() local
611 iph = ip_hdr(head); in ip_frag_reasm()
613 iph->frag_off = qp->q.max_size ? htons(IP_DF) : 0; in ip_frag_reasm()
614 iph->tot_len = htons(len); in ip_frag_reasm()
615 iph->tos |= ecn; in ip_frag_reasm()
617 ip_send_check(iph); in ip_frag_reasm()
666 struct iphdr iph; in ip_check_defrag() local
675 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
678 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag()
681 len = ntohs(iph.tot_len); in ip_check_defrag()
682 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
685 if (ip_is_fragment(&iph)) { in ip_check_defrag()
688 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) in ip_check_defrag()