summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_reass.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-04-17 18:08:01 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-04-17 18:08:01 +0000
commitf0a04f3f51485131962ee392decaedefe989018c (patch)
tree82a8c04e54889b5f8c4263e13fb53795669bd27c /sys/netinet/tcp_reass.c
parente3ee8974e38f4ba93c7c3d70d4d6d0cb06791c13 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 6c7ae760b529..036f675d7068 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -1110,9 +1110,14 @@ findpcb:
tcp_dooptions(tp, optp, optlen, th, &to);
if (iss)
tp->iss = iss;
- else
+ else {
+#ifdef TCP_COMPAT_42
+ tcp_iss += TCP_ISSINCR/2;
tp->iss = tcp_iss;
- tcp_iss += TCP_ISSINCR/4;
+#else
+ tp->iss = tcp_rndiss_next();
+#endif /* TCP_COMPAT_42 */
+ }
tp->irs = th->th_seq;
tcp_sendseqinit(tp);
tcp_rcvseqinit(tp);
@@ -1643,7 +1648,11 @@ trimthenstep6:
if (thflags & TH_SYN &&
tp->t_state == TCPS_TIME_WAIT &&
SEQ_GT(th->th_seq, tp->rcv_nxt)) {
+#ifdef TCP_COMPAT_42
iss = tp->snd_nxt + TCP_ISSINCR;
+#else
+ iss = tcp_rndiss_next();
+#endif /* TCP_COMPAT_42 */
tp = tcp_close(tp);
goto findpcb;
}