Lines Matching refs:vseq
205 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() argument
214 if (vseq->delta || vseq->previous_delta) { in vs_fix_seq()
215 if(after(seq, vseq->init_seq)) { in vs_fix_seq()
216 th->seq = htonl(seq + vseq->delta); in vs_fix_seq()
218 vseq->delta); in vs_fix_seq()
220 th->seq = htonl(seq + vseq->previous_delta); in vs_fix_seq()
222 "(%d) to seq\n", vseq->previous_delta); in vs_fix_seq()
232 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() argument
241 if (vseq->delta || vseq->previous_delta) { in vs_fix_ack_seq()
244 if(after(ack_seq, vseq->init_seq+vseq->delta)) { in vs_fix_ack_seq()
245 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
247 "(%d) from ack_seq\n", vseq->delta); in vs_fix_ack_seq()
250 th->ack_seq = htonl(ack_seq - vseq->previous_delta); in vs_fix_ack_seq()
253 vseq->previous_delta); in vs_fix_ack_seq()
263 static inline void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq, in vs_seq_update() argument
268 if ( !(cp->flags & flag) || after(seq, vseq->init_seq)) { in vs_seq_update()
269 vseq->previous_delta = vseq->delta; in vs_seq_update()
270 vseq->delta += diff; in vs_seq_update()
271 vseq->init_seq = seq; in vs_seq_update()