Lines Matching refs:iph
210 const struct iphdr *iph; in tcf_csum_ipv4_tcp() local
219 iph = ip_hdr(skb); in tcf_csum_ipv4_tcp()
223 iph->saddr, iph->daddr, skb->csum); in tcf_csum_ipv4_tcp()
259 const struct iphdr *iph; in tcf_csum_ipv4_udp() local
276 iph = ip_hdr(skb); in tcf_csum_ipv4_udp()
297 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in tcf_csum_ipv4_udp()
298 ul, iph->protocol, in tcf_csum_ipv4_udp()
387 const struct iphdr *iph; in tcf_csum_ipv4() local
392 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
395 iph = ip_hdr(skb); in tcf_csum_ipv4()
397 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
400 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
401 ntohs(iph->tot_len))) in tcf_csum_ipv4()
406 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
407 ntohs(iph->tot_len))) in tcf_csum_ipv4()
412 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
413 ntohs(iph->tot_len))) in tcf_csum_ipv4()
418 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
419 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
424 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
425 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
430 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
436 if (skb_try_make_writable(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()