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:
parent
b837caf89b
commit
c0f7fd5575
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54601
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user