diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-07-09 00:15:20 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-07-09 00:15:20 +0800 |
commit | d671d6d3c4d58cf2e0d3d13208430ef70354e097 (patch) | |
tree | 2de383596fda3b35e2f65fd628fa697219f5c0c8 /session.h | |
parent | f678a6442a9fed445bc76577ec66fc45536a2d34 (diff) | |
download | dropbear-d671d6d3c4d58cf2e0d3d13208430ef70354e097.tar.gz |
Make -K keepalive behave like OpenSSH's ServerAliveInterval
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 */ |