summaryrefslogtreecommitdiffhomepage
path: root/options.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-07-09 00:15:20 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-07-09 00:15:20 +0800
commitc884e5000e881f45e5c2328e219eebd07b0560ca (patch)
tree59c2280892aff108c15690290ad4adbc1f4e2012 /options.h
parent1ccac01cee0222be332b46d7102336465760aa11 (diff)
Make -K keepalive behave like OpenSSH's ServerAliveInterval
Diffstat (limited to 'options.h')
-rw-r--r--options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/options.h b/options.h
index 44d6d23..ab6abea 100644
--- a/options.h
+++ b/options.h
@@ -308,6 +308,11 @@ much traffic. */
be overridden at runtime with -K. 0 disables keepalives */
#define DEFAULT_KEEPALIVE 0
+/* If this many KEEPALIVES are sent with no packets received from the
+other side, exit. Not run-time configurable - if you have a need
+for runtime configuration please mail the Dropbear list */
+#define DEFAULT_KEEPALIVE_LIMIT 3
+
/* Ensure that data is received within IDLE_TIMEOUT seconds. This can
be overridden at runtime with -I. 0 disables idle timeouts */
#define DEFAULT_IDLE_TIMEOUT 0