summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorjayanth <jayanth@FreeBSD.org>2001-10-05 21:33:38 +0000
committerjayanth <jayanth@FreeBSD.org>2001-10-05 21:33:38 +0000
commit3c252600584c9f07e9a9145a104a08e001090d00 (patch)
treee4fe78cb3f41ec216402bb68c1185cffeae21621 /sys/netinet/tcp_var.h
parentd3e4b82b69037389ddd7149ee65ddac5095efa4d (diff)
downloadFreeBSD-src-3c252600584c9f07e9a9145a104a08e001090d00.zip
FreeBSD-src-3c252600584c9f07e9a9145a104a08e001090d00.tar.gz
Add a flag TF_LASTIDLE, that forces a previously idle connection
to send all its data, especially when the data is less than one MSS. This fixes an issue where the stack was delaying the sending of data, eventhough there was enough window to send all the data and the sending of data was emptying the socket buffer. Problem found by Yoshihiro Tsuchiya (tsuchiya@flab.fujitsu.co.jp) Submitted by: Jayanth Vijayaraghavan
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 9c2803f..7dc1bac 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -95,6 +95,7 @@ struct tcpcb {
#define TF_SENDCCNEW 0x08000 /* send CCnew instead of CC in SYN */
#define TF_MORETOCOME 0x10000 /* More data to be appended to sock */
#define TF_LQ_OVERFLOW 0x20000 /* listen queue overflow */
+#define TF_LASTIDLE 0x40000 /* connection was previously idle */
int t_force; /* 1 if forcing out a byte */
tcp_seq snd_una; /* send unacknowledged */
OpenPOWER on IntegriCloud