diff options
author | Andre Oppermann <andre@FreeBSD.org> | 2011-10-16 20:18:39 +0000 |
---|---|---|
committer | Andre Oppermann <andre@FreeBSD.org> | 2011-10-16 20:18:39 +0000 |
commit | 873789cb0f94995e9864d955dcef743262b43c1e (patch) | |
tree | ea1c72eb22f16033c361854dc5dc76332525d40c /sys/netinet/tcp_input.c | |
parent | 9ec4a4cca5d96574c739b1d4a0cbcb65c7b39516 (diff) | |
download | src-873789cb0f94995e9864d955dcef743262b43c1e.tar.gz src-873789cb0f94995e9864d955dcef743262b43c1e.zip |
Move the tcp_sendspace and tcp_recvspace sysctl's from
the middle of tcp_usrreq.c to the top of tcp_output.c
and tcp_input.c respectively next to the socket buffer
autosizing controls.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=226448
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 2b8362b72e63..10f37004bfdf 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -183,6 +183,11 @@ SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, insecure_rst, CTLFLAG_RW, &VNET_NAME(tcp_insecure_rst), 0, "Follow the old (insecure) criteria for accepting RST packets"); +VNET_DEFINE(int, tcp_recvspace) = 1024*64 +#define V_tcp_recvspace VNET(tcp_recvspace) +SYSCTL_VNET_INT(_net_inet_tcp, TCPCTL_RECVSPACE, tcp_recvspace, CTLFLAG_RW, + &VNET_NAME(tcp_recvspace), 0, "Initial receive socket buffer size"); + VNET_DEFINE(int, tcp_do_autorcvbuf) = 1; #define V_tcp_do_autorcvbuf VNET(tcp_do_autorcvbuf) SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, recvbuf_auto, CTLFLAG_RW, |