summaryrefslogtreecommitdiff
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
commitd671d6d3c4d58cf2e0d3d13208430ef70354e097 (patch)
tree2de383596fda3b35e2f65fd628fa697219f5c0c8 /session.h
parentf678a6442a9fed445bc76577ec66fc45536a2d34 (diff)
downloaddropbear-d671d6d3c4d58cf2e0d3d13208430ef70354e097.tar.gz
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 */