Lines Matching defs:vseq
257 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
266 if (vseq->delta || vseq->previous_delta) {
267 if(after(seq, vseq->init_seq)) {
268 th->seq = htonl(seq + vseq->delta);
270 __func__, vseq->delta);
272 th->seq = htonl(seq + vseq->previous_delta);
274 __func__, vseq->previous_delta);
284 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
293 if (vseq->delta || vseq->previous_delta) {
296 if(after(ack_seq, vseq->init_seq+vseq->delta)) {
297 th->ack_seq = htonl(ack_seq - vseq->delta);
299 "(%d) from ack_seq\n", __func__, vseq->delta);
302 th->ack_seq = htonl(ack_seq - vseq->previous_delta);
305 __func__, vseq->previous_delta);
315 static inline void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq,
320 if (!(cp->flags & flag) || after(seq, vseq->init_seq)) {
321 vseq->previous_delta = vseq->delta;
322 vseq->delta += diff;
323 vseq->init_seq = seq;