Lines Matching defs:iph
208 const struct iphdr *iph;
217 iph = ip_hdr(skb);
221 iph->saddr, iph->daddr, skb->csum);
257 const struct iphdr *iph;
267 * Use iph->tot_len, or just ipl.
274 iph = ip_hdr(skb);
295 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
296 ul, iph->protocol,
386 const struct iphdr *iph;
391 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff))
394 iph = ip_hdr(skb);
396 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) {
399 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4,
400 ntohs(iph->tot_len)))
405 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4,
406 ntohs(iph->tot_len)))
411 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4,
412 ntohs(iph->tot_len)))
417 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4,
418 ntohs(iph->tot_len), 0))
423 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4,
424 ntohs(iph->tot_len), 1))
429 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len)))
435 if (skb_try_make_writable(skb, sizeof(*iph) + ntkoff))