• Home
  • Raw
  • Download

Lines Matching refs:iph

100 	struct iphdr *iph;  member
127 return qp->id == arg->iph->id && in ip4_frag_match()
128 qp->saddr == arg->iph->saddr && in ip4_frag_match()
129 qp->daddr == arg->iph->daddr && in ip4_frag_match()
130 qp->protocol == arg->iph->protocol && in ip4_frag_match()
144 qp->protocol = arg->iph->protocol; in ip4_frag_init()
145 qp->id = arg->iph->id; in ip4_frag_init()
146 qp->ecn = ip4_frag_ecn(arg->iph->tos); in ip4_frag_init()
147 qp->saddr = arg->iph->saddr; in ip4_frag_init()
148 qp->daddr = arg->iph->daddr; in ip4_frag_init()
152 inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, arg->vif, 1) : in ip4_frag_init()
212 const struct iphdr *iph; in ip_expire() local
226 iph = ip_hdr(head); in ip_expire()
227 err = ip_route_input_noref(head, iph->daddr, iph->saddr, in ip_expire()
228 iph->tos, head->dev); in ip_expire()
260 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find() argument
267 arg.iph = iph; in ip_find()
271 hash = ipqhashfn(iph->id, iph->saddr, iph->daddr, iph->protocol); in ip_find()
535 struct iphdr *iph; in ip_frag_reasm() local
626 iph = ip_hdr(head); in ip_frag_reasm()
627 iph->tot_len = htons(len); in ip_frag_reasm()
628 iph->tos |= ecn; in ip_frag_reasm()
640 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
642 iph->frag_off = 0; in ip_frag_reasm()
645 ip_send_check(iph); in ip_frag_reasm()
695 struct iphdr iph; in ip_check_defrag() local
704 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
707 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag()
710 len = ntohs(iph.tot_len); in ip_check_defrag()
711 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
714 if (ip_is_fragment(&iph)) { in ip_check_defrag()
717 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) in ip_check_defrag()