summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-11-21 18:45:51 +0000
committerjlemon <jlemon@FreeBSD.org>2001-11-21 18:45:51 +0000
commitc41580e9addbdb6bb5d194f56f3aa8f99db39808 (patch)
tree93d856e5c84d50cad3a65577232d84d68b025dcc /sys
parentb2b66c0537ee9de505fa8ccbe7974435afed26db (diff)
downloadFreeBSD-src-c41580e9addbdb6bb5d194f56f3aa8f99db39808.zip
FreeBSD-src-c41580e9addbdb6bb5d194f56f3aa8f99db39808.tar.gz
Move initialization of snd_recover into tcp_sendseqinit().
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c1
-rw-r--r--sys/netinet/tcp_reass.c1
-rw-r--r--sys/netinet/tcp_seq.h2
3 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index baa972d..7ab594e 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 baa972d..7ab594e 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 c1d36d3..5850ccc 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 */
OpenPOWER on IntegriCloud