1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

Use SEQ_* macros for comparing sequence space numbers.

Reviewed by:	truckman
This commit is contained in:
Jonathan Lemon 1999-12-14 15:43:56 +00:00
parent b837caf89b
commit c0f7fd5575
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54601
2 changed files with 4 additions and 4 deletions

View File

@ -1125,8 +1125,8 @@ tcp_input(m, iphlen)
* 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 @@ tcp_input(m, iphlen)
* 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: