summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lemon <jlemon@FreeBSD.org>1999-12-14 15:43:56 +0000
committerJonathan Lemon <jlemon@FreeBSD.org>1999-12-14 15:43:56 +0000
commitc0f7fd5575dce02817d2ad13db6f3ad1834641de (patch)
treec27824089809d391d91d3b6a88cdc4ebbd2c5422
parentb837caf89b6f501b0a84a1b485f4cb577b875bb0 (diff)
downloadsrc-test2-c0f7fd5575dce02817d2ad13db6f3ad1834641de.tar.gz
src-test2-c0f7fd5575dce02817d2ad13db6f3ad1834641de.zip
Notes
-rw-r--r--sys/netinet/tcp_input.c4
-rw-r--r--sys/netinet/tcp_reass.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index d3b5461c7053..33a478c3852c 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -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:
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index d3b5461c7053..33a478c3852c 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -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: