Lines Matching defs:iph
127 const struct iphdr *iph;
168 iph = ip_hdr(head);
169 reason = ip_route_input_noref(head, iph->daddr, iph->saddr,
170 ip4h_dscp(iph), head->dev);
197 static struct ipq *ip_find(struct net *net, struct iphdr *iph,
201 .saddr = iph->saddr,
202 .daddr = iph->daddr,
205 .id = iph->id,
206 .protocol = iph->protocol,
409 struct iphdr *iph;
438 iph = ip_hdr(skb);
439 iph->tot_len = htons(len);
440 iph->tos |= ecn;
452 iph->frag_off = htons(IP_DF);
454 iph->frag_off = 0;
457 ip_send_check(iph);
512 struct iphdr iph;
521 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0)
524 if (iph.ihl < 5 || iph.version != 4)
527 len = ntohs(iph.tot_len);
528 if (skb->len < netoff + len || len < (iph.ihl * 4))
531 if (ip_is_fragment(&iph)) {
534 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) {