aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2020-01-08 23:30:26 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2020-01-08 23:30:26 +0000
commit334fc5822becf3294a389630137d2332e42fda7d (patch)
tree64d9be50a60c4aaa2f49cdfd2bb1d22823703fc2 /sys/netinet/tcp_var.h
parente371a9e6cc30e63a240619e1e07c06b5f7305062 (diff)
downloadsrc-334fc5822becf3294a389630137d2332e42fda7d.tar.gz
src-334fc5822becf3294a389630137d2332e42fda7d.zip
vnet: virtualise more network stack sysctls.
Virtualise tcp_always_keepalive, TCP and UDP log_in_vain. All three are set in the netoptions startup script, which we would love to run for VNETs as well [1]. While virtualising the log_in_vain sysctls seems pointles at first for as long as the kernel message buffer is not virtualised, it at least allows an administrator to debug the base system or an individual jail if needed without turning the logging on for all jails running on a system. PR: 243193 [1] MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=356527
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 6f526cbc31e4..7539dcb7ffaa 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -767,7 +767,8 @@ SYSCTL_DECL(_net_inet_tcp_sack);
MALLOC_DECLARE(M_TCPLOG);
#endif
-extern int tcp_log_in_vain;
+VNET_DECLARE(int, tcp_log_in_vain);
+#define V_tcp_log_in_vain VNET(tcp_log_in_vain)
/*
* Global TCP tunables shared between different stacks.