summaryrefslogtreecommitdiffhomepage
path: root/session.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-03-13 23:50:09 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-03-13 23:50:09 +0800
commite767bbb41f277ebb8f477e5cda5b97a3a52b08a7 (patch)
tree79e85d770254e5a929aa6d3e09974cbf1fdd6d2e /session.h
parent2b599df57abf70963706b62604ecc2c421b549da (diff)
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'session.h')
-rw-r--r--session.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/session.h b/session.h
index b347700..e66fc39 100644
--- a/session.h
+++ b/session.h
@@ -106,7 +106,8 @@ struct sshsession {
time_t connect_time; /* time the connection was established
(cleared after auth once we're not
- respecting AUTH_TIMEOUT any more) */
+ respecting AUTH_TIMEOUT any more).
+ A monotonic time, not realworld */
int sock_in;
int sock_out;
@@ -147,10 +148,10 @@ struct sshsession {
race-free signal handling */
time_t last_trx_packet_time; /* time of the last packet transmission, for
- keepalive purposes */
+ keepalive purposes. Not real-world clock */
time_t last_packet_time; /* time of the last packet transmission or receive, for
- idle timeout purposes */
+ idle timeout purposes. Not real-world clock */
/* KEX/encryption related */