summaryrefslogtreecommitdiffhomepage
path: root/runopts.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 /runopts.h
parent1ccac01cee0222be332b46d7102336465760aa11 (diff)
Make -K keepalive behave like OpenSSH's ServerAliveInterval
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runopts.h b/runopts.h
index 21fc8e5..f3d784c 100644
--- a/runopts.h
+++ b/runopts.h
@@ -37,8 +37,8 @@ typedef struct runopts {
int listen_fwd_all;
#endif
unsigned int recv_window;
- time_t keepalive_secs;
- time_t idle_timeout_secs;
+ time_t keepalive_secs; /* Time between sending keepalives. 0 is off */
+ time_t idle_timeout_secs; /* Exit if no traffic is sent/received in this time */
#ifndef DISABLE_ZLIB
/* TODO: add a commandline flag. Currently this is on by default if compression