Lines Matching refs:iph
178 const struct iphdr *iph; in tcf_csum_ipv4_tcp() local
184 iph = ip_hdr(skb); in tcf_csum_ipv4_tcp()
188 iph->saddr, iph->daddr, skb->csum); in tcf_csum_ipv4_tcp()
221 const struct iphdr *iph; in tcf_csum_ipv4_udp() local
235 iph = ip_hdr(skb); in tcf_csum_ipv4_udp()
256 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in tcf_csum_ipv4_udp()
257 ul, iph->protocol, in tcf_csum_ipv4_udp()
324 const struct iphdr *iph; in tcf_csum_ipv4() local
329 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
332 iph = ip_hdr(skb); in tcf_csum_ipv4()
334 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
337 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
338 ntohs(iph->tot_len))) in tcf_csum_ipv4()
343 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
344 ntohs(iph->tot_len))) in tcf_csum_ipv4()
349 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
350 ntohs(iph->tot_len))) in tcf_csum_ipv4()
355 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
356 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
361 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
362 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
369 !skb_clone_writable(skb, sizeof(*iph) + ntkoff) && in tcf_csum_ipv4()