projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a1fa5d8
)
tcp: Expose tcp_keepcnt through sysctl net.inet.tcp.keepcnt
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Sep 2011 06:06:46 +0000 (14:06 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Sep 2011 06:06:46 +0000 (14:06 +0800)
sys/netinet/tcp_timer.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/netinet/tcp_timer.c
b/sys/netinet/tcp_timer.c
index
bb83021
..
9729c2b
100644
(file)
--- 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;
/*