From 9269e6b6cdb3b0c9cf6c1b72750a1a1421a9c65c Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 16 Sep 2011 14:06:46 +0800 Subject: [PATCH] tcp: Expose tcp_keepcnt through sysctl net.inet.tcp.keepcnt --- sys/netinet/tcp_timer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index bb83021003..9729c2bf84 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -186,10 +186,14 @@ 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"); +/* max idle probes */ static int tcp_keepcnt = TCPTV_KEEPCNT; - /* max idle probes */ +SYSCTL_INT(_net_inet_tcp, OID_AUTO, keepcnt, CTLFLAG_RW, + &tcp_keepcnt, 0, "Maximum number of keepalive probes to be sent"); + +/* max idle time in persist */ int tcp_maxpersistidle; - /* max idle time in persist */ + int tcp_maxidle; /* -- 2.41.0