Lines Matching refs:tcph
176 struct tcphdr *tcph; in tcf_csum_ipv4_tcp() local
179 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv4_tcp()
180 if (tcph == NULL) in tcf_csum_ipv4_tcp()
184 tcph->check = 0; in tcf_csum_ipv4_tcp()
185 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv4_tcp()
186 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
197 struct tcphdr *tcph; in tcf_csum_ipv6_tcp() local
200 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv6_tcp()
201 if (tcph == NULL) in tcf_csum_ipv6_tcp()
205 tcph->check = 0; in tcf_csum_ipv6_tcp()
206 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv6_tcp()
207 tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_tcp()