summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-12-07 17:01:28 +0000
committerrwatson <rwatson@FreeBSD.org>2001-12-07 17:01:28 +0000
commit02fc34fde9741cda8ef72482cc623f95b4aa9e4a (patch)
treee2f54e1befe5d81d4fb0f7852fe34d7f6904ffff /sys/netinet
parent153ef07a498264ae6f297fd05b89e8111937ec2c (diff)
downloadFreeBSD-src-02fc34fde9741cda8ef72482cc623f95b4aa9e4a.zip
FreeBSD-src-02fc34fde9741cda8ef72482cc623f95b4aa9e4a.tar.gz
o Our currenty userland boot code (due to rc.conf and rc.network) always
enables TCP keepalives using the net.inet.tcp.always_keepalive by default. Synchronize the kernel default with the userland default.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 488c293..087e243 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -109,7 +109,7 @@ int tcp_msl;
SYSCTL_PROC(_net_inet_tcp, OID_AUTO, msl, CTLTYPE_INT|CTLFLAG_RW,
&tcp_msl, 0, sysctl_msec_to_ticks, "I", "Maximum segment lifetime");
-static int always_keepalive = 0;
+static int always_keepalive = 1;
SYSCTL_INT(_net_inet_tcp, OID_AUTO, always_keepalive, CTLFLAG_RW,
&always_keepalive , 0, "Assume SO_KEEPALIVE on all TCP connections");
OpenPOWER on IntegriCloud