Lines Matching refs:tcph
207 struct tcphdr *tcph; in tcf_csum_ipv4_tcp() local
213 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv4_tcp()
214 if (tcph == NULL) in tcf_csum_ipv4_tcp()
218 tcph->check = 0; in tcf_csum_ipv4_tcp()
219 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv4_tcp()
220 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
231 struct tcphdr *tcph; in tcf_csum_ipv6_tcp() local
237 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv6_tcp()
238 if (tcph == NULL) in tcf_csum_ipv6_tcp()
242 tcph->check = 0; in tcf_csum_ipv6_tcp()
243 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv6_tcp()
244 tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_tcp()