diff options
| -rw-r--r-- | sys/netinet/tcp_usrreq.c | 14 |
1 files 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 |
