Use SEQ_* macros for comparing sequence space numbers.

Reviewed by:	truckman
This commit is contained in:
jlemon 1999-12-14 15:43:56 +00:00
parent 5b92abcf9d
commit 68756a0d9e
2 changed files with 4 additions and 4 deletions

View File

@ -1125,8 +1125,8 @@ trimthenstep6:
* RFC 1337.
*/
if (tiflags & TH_RST) {
if (ti->ti_seq >= tp->last_ack_sent &&
ti->ti_seq < tp->last_ack_sent + tp->rcv_wnd) {
if (SEQ_GEQ(ti->ti_seq, tp->last_ack_sent) &&
SEQ_LT(ti->ti_seq, tp->last_ack_sent + tp->rcv_wnd)) {
switch (tp->t_state) {
case TCPS_SYN_RECEIVED:

View File

@ -1125,8 +1125,8 @@ trimthenstep6:
* RFC 1337.
*/
if (tiflags & TH_RST) {
if (ti->ti_seq >= tp->last_ack_sent &&
ti->ti_seq < tp->last_ack_sent + tp->rcv_wnd) {
if (SEQ_GEQ(ti->ti_seq, tp->last_ack_sent) &&
SEQ_LT(ti->ti_seq, tp->last_ack_sent + tp->rcv_wnd)) {
switch (tp->t_state) {
case TCPS_SYN_RECEIVED: