Lines Matching refs:iph
177 const struct iphdr *iph; in tcf_csum_ipv4_tcp() local
183 iph = ip_hdr(skb); in tcf_csum_ipv4_tcp()
187 iph->saddr, iph->daddr, skb->csum); in tcf_csum_ipv4_tcp()
220 const struct iphdr *iph; in tcf_csum_ipv4_udp() local
234 iph = ip_hdr(skb); in tcf_csum_ipv4_udp()
255 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in tcf_csum_ipv4_udp()
256 ul, iph->protocol, in tcf_csum_ipv4_udp()
323 const struct iphdr *iph; in tcf_csum_ipv4() local
328 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
331 iph = ip_hdr(skb); in tcf_csum_ipv4()
333 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
336 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
337 ntohs(iph->tot_len))) in tcf_csum_ipv4()
342 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
343 ntohs(iph->tot_len))) in tcf_csum_ipv4()
348 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
349 ntohs(iph->tot_len))) in tcf_csum_ipv4()
354 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
355 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
360 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
361 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
368 !skb_clone_writable(skb, sizeof(*iph) + ntkoff) && in tcf_csum_ipv4()