summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-12-02 08:49:29 +0000
committerdillon <dillon@FreeBSD.org>2001-12-02 08:49:29 +0000
commitf97547e246f3c4f9f272892fa757d7df8dc90b89 (patch)
tree1e2d69883173d0e4c094c85ef435f3c25dc41de5 /sys/netinet/tcp_var.h
parent0b6f0e4522eeceef1d5e5dc2e920666192f7ec2a (diff)
downloadFreeBSD-src-f97547e246f3c4f9f272892fa757d7df8dc90b89.zip
FreeBSD-src-f97547e246f3c4f9f272892fa757d7df8dc90b89.tar.gz
Fix a bug with transmitter restart after receiving a 0 window. The
receiver was not sending an immediate ack with delayed acks turned on when the input buffer is drained, preventing the transmitter from restarting immediately. Propogate the TCP_NODELAY option to accept()ed sockets. (Helps tbench and is a good idea anyway). Some cleanup. Identify additonal issues in comments. MFC after: 1 day
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 0f71278..f4a5b75 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -101,6 +101,7 @@ struct tcpcb {
#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 */
+#define TF_RXWIN0SENT 0x80000 /* sent a receiver win 0 in response */
int t_force; /* 1 if forcing out a byte */
tcp_seq snd_una; /* send unacknowledged */
OpenPOWER on IntegriCloud