Lines Matching refs:tcph
76 struct tcphdr *tcph, in nf_ct_sack_block_adjust() argument
106 inet_proto_csum_replace4(&tcph->check, skb, in nf_ct_sack_block_adjust()
108 inet_proto_csum_replace4(&tcph->check, skb, in nf_ct_sack_block_adjust()
122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust() local
127 optend = protoff + tcph->doff * 4; in nf_ct_sack_adjust()
132 tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust()
154 nf_ct_sack_block_adjust(skb, tcph, optoff + 2, in nf_ct_sack_adjust()
169 struct tcphdr *tcph; in nf_ct_seq_adjust() local
179 if (skb_ensure_writable(skb, protoff + sizeof(*tcph))) in nf_ct_seq_adjust()
182 tcph = (void *)skb->data + protoff; in nf_ct_seq_adjust()
184 if (after(ntohl(tcph->seq), this_way->correction_pos)) in nf_ct_seq_adjust()
189 newseq = htonl(ntohl(tcph->seq) + seqoff); in nf_ct_seq_adjust()
190 inet_proto_csum_replace4(&tcph->check, skb, tcph->seq, newseq, false); in nf_ct_seq_adjust()
192 ntohl(tcph->seq), ntohl(newseq)); in nf_ct_seq_adjust()
193 tcph->seq = newseq; in nf_ct_seq_adjust()
195 if (!tcph->ack) in nf_ct_seq_adjust()
198 if (after(ntohl(tcph->ack_seq) - other_way->offset_before, in nf_ct_seq_adjust()
204 newack = htonl(ntohl(tcph->ack_seq) - ackoff); in nf_ct_seq_adjust()
205 inet_proto_csum_replace4(&tcph->check, skb, tcph->ack_seq, newack, in nf_ct_seq_adjust()
208 ntohl(tcph->seq), ntohl(newseq), ntohl(tcph->ack_seq), in nf_ct_seq_adjust()
210 tcph->ack_seq = newack; in nf_ct_seq_adjust()