summaryrefslogtreecommitdiffhomepage
path: root/session.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 /session.h
parent1ccac01cee0222be332b46d7102336465760aa11 (diff)
Make -K keepalive behave like OpenSSH's ServerAliveInterval
Diffstat (limited to 'session.h')
-rw-r--r--session.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/session.h b/session.h
index e66fc39..16a6e37 100644
--- a/session.h
+++ b/session.h
@@ -147,11 +147,14 @@ struct sshsession {
int signal_pipe[2]; /* stores endpoints of a self-pipe used for
race-free signal handling */
- time_t last_trx_packet_time; /* time of the last packet transmission, for
- keepalive purposes. Not real-world clock */
-
- time_t last_packet_time; /* time of the last packet transmission or receive, for
- idle timeout purposes. Not real-world clock */
+ /* time of the last packet send/receive, for keepalive. Not real-world clock */
+ time_t last_packet_time_keepalive_sent;
+ time_t last_packet_time_keepalive_recv;
+ time_t last_packet_time_any_sent;
+
+ time_t last_packet_time_idle; /* time of the last packet transmission or receive, for
+ idle timeout purposes so ignores SSH_MSG_IGNORE
+ or responses to keepalives. Not real-world clock */
/* KEX/encryption related */