summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2011-10-16 13:54:46 +0000
committerandre <andre@FreeBSD.org>2011-10-16 13:54:46 +0000
commit2cc524e37179293341c5292b96661aa161e33cd7 (patch)
tree694e3c5a678f2f43a5424a365b77fb03fd3cd6c5 /sys/netinet
parent260d7934a518bcc3924315dfc2f9cdfa061ddb5a (diff)
downloadFreeBSD-src-2cc524e37179293341c5292b96661aa161e33cd7.zip
FreeBSD-src-2cc524e37179293341c5292b96661aa161e33cd7.tar.gz
Update the comment and description of tcp_sendspace and tcp_recvspace
to better reflect their purpose. MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_usrreq.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 96cb1e4..e43c363 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1498,16 +1498,15 @@ tcp_ctloutput(struct socket *so, struct sockopt *sopt)
#undef INP_WLOCK_RECHECK
/*
- * 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).
+ * Set the initial send and receive socket buffer sizes for
+ * newly created TCP sockets.
*/
u_long tcp_sendspace = 1024*32;
SYSCTL_ULONG(_net_inet_tcp, TCPCTL_SENDSPACE, sendspace, CTLFLAG_RW,
- &tcp_sendspace , 0, "Maximum outgoing TCP datagram size");
+ &tcp_sendspace , 0, "Initial send socket buffer size");
u_long tcp_recvspace = 1024*64;
SYSCTL_ULONG(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
- &tcp_recvspace , 0, "Maximum incoming TCP datagram size");
+ &tcp_recvspace , 0, "Initial receive socket buffer size");
/*
* Attach TCP protocol to socket, allocating
OpenPOWER on IntegriCloud