aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2003-11-02 07:47:03 +0000
committerMike Silbersack <silby@FreeBSD.org>2003-11-02 07:47:03 +0000
commit4bd4fa3fe69b8003e0869cc4ed5f368226b2003d (patch)
tree078870ac899a25193239c6660b6dea9f4e1405ef /sys/netinet/tcp_var.h
parent03e432ad9cfa06218afdda215c66e94dea5af208 (diff)
downloadsrc-4bd4fa3fe69b8003e0869cc4ed5f368226b2003d.tar.gz
src-4bd4fa3fe69b8003e0869cc4ed5f368226b2003d.zip
Add an additional check to the tcp_twrecycleable function; I had
previously only considered the send sequence space. Unfortunately, some OSes (windows) still use a random positive increments scheme for their syn-ack ISNs, so I must consider receive sequence space as well. The value of 250000 bytes / second for Microsoft's ISN rate of increase was determined by testing with an XP machine.
Notes
Notes: svn path=/head/; revision=121884
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index ceb292fcf1c9..2e5b3fa58b19 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -247,6 +247,7 @@ struct tcptw {
tcp_seq snd_nxt;
tcp_seq rcv_nxt;
tcp_seq iss;
+ tcp_seq irs;
tcp_cc cc_recv;
tcp_cc cc_send;
u_short last_win; /* cached window value */