Use SEQ_* macros for comparing sequence space numbers.
Reviewed by: truckman
This commit is contained in:
parent
5b92abcf9d
commit
68756a0d9e
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user