Lines Matching defs:iph
164 const struct iphdr *iph, int hash)
175 if (!raw_v4_match(net, sk, iph->protocol,
176 iph->saddr, iph->daddr, dif, sdif))
179 if ((iph->protocol != IPPROTO_ICMP || !icmp_filter(sk, skb)) &&
180 ip_mc_sf_allow(sk, iph->daddr, iph->saddr,
251 const struct iphdr *iph = (const struct iphdr *)skb->data;
252 u8 *payload = skb->data + (iph->ihl << 2);
271 const struct iphdr *iph;
280 iph = (const struct iphdr *)skb->data;
281 if (!raw_v4_match(net, sk, iph->protocol,
282 iph->daddr, iph->saddr, dif, sdif))
326 struct iphdr *iph;
361 iph = ip_hdr(skb);
373 if (memcpy_from_msg(iph, msg, length))
376 iphlen = iph->ihl * 4;
381 * stack. Specifically we want to make sure that iph->ihl is a
389 if (iphlen >= sizeof(*iph)) {
390 if (!iph->saddr)
391 iph->saddr = fl4->saddr;
392 iph->check = 0;
393 iph->tot_len = htons(length);
394 if (!iph->id)
397 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
399 if (iph->protocol == IPPROTO_ICMP &&