From d00fd2011de2ddfa1ea78e6befacc03c1ed14aaf Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Wed, 21 Nov 2001 18:45:51 +0000 Subject: [PATCH] Move initialization of snd_recover into tcp_sendseqinit(). --- sys/netinet/tcp_input.c | 1 - sys/netinet/tcp_reass.c | 1 - sys/netinet/tcp_seq.h | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index baa972d614f..7ab594eaec1 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1139,7 +1139,6 @@ findpcb: tp->irs = th->th_seq; tcp_sendseqinit(tp); tcp_rcvseqinit(tp); - tp->snd_recover = tp->snd_una; /* * Initialization of the tcpcb for transaction; * set SND.WND = SEG.WND, diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index baa972d614f..7ab594eaec1 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -1139,7 +1139,6 @@ findpcb: tp->irs = th->th_seq; tcp_sendseqinit(tp); tcp_rcvseqinit(tp); - tp->snd_recover = tp->snd_una; /* * Initialization of the tcpcb for transaction; * set SND.WND = SEG.WND, diff --git a/sys/netinet/tcp_seq.h b/sys/netinet/tcp_seq.h index c1d36d33113..5850ccc505e 100644 --- a/sys/netinet/tcp_seq.h +++ b/sys/netinet/tcp_seq.h @@ -73,7 +73,7 @@ #define tcp_sendseqinit(tp) \ (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ - (tp)->iss + (tp)->snd_recover = (tp)->iss #define TCP_PAWS_IDLE (24 * 24 * 60 * 60 * hz) /* timestamp wrap-around time */