From 26e30fbba5deabaa9888fb5576e1450920705e93 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 29 May 1994 07:42:47 +0000 Subject: [PATCH] Increased tcp_send/recvspace to 16k, and added TCP_SMALLSPACE ifdef to set it to 4k. --- sys/netinet/tcp_usrreq.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 42c45a43a9a0..37dac23af77c 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -412,8 +412,18 @@ tcp_ctloutput(op, so, level, optname, mp) return (error); } -u_long tcp_sendspace = 1024*8; -u_long tcp_recvspace = 1024*8; +/* + * tcp_sendspace and tcp_recvspace are the default send and receive window + * sizes, respectively. These are obsolescent (this information should + * be set by the route). + */ +#ifdef TCP_SMALLSPACE +u_long tcp_sendspace = 1024*4; +u_long tcp_recvspace = 1024*4; +#else +u_long tcp_sendspace = 1024*16; +u_long tcp_recvspace = 1024*16; +#endif /* * Attach TCP protocol to socket, allocating