comparison session.h @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents cbc73a5aefb0
children a0819ecfee0b
comparison
equal deleted inserted replaced
927:122fb3532038 928:7cd89d4e0335
104 /* Is it a client or server? */ 104 /* Is it a client or server? */
105 unsigned char isserver; 105 unsigned char isserver;
106 106
107 time_t connect_time; /* time the connection was established 107 time_t connect_time; /* time the connection was established
108 (cleared after auth once we're not 108 (cleared after auth once we're not
109 respecting AUTH_TIMEOUT any more) */ 109 respecting AUTH_TIMEOUT any more).
110 A monotonic time, not realworld */
110 111
111 int sock_in; 112 int sock_in;
112 int sock_out; 113 int sock_out;
113 114
114 /* remotehost will be initially NULL as we delay 115 /* remotehost will be initially NULL as we delay
145 146
146 int signal_pipe[2]; /* stores endpoints of a self-pipe used for 147 int signal_pipe[2]; /* stores endpoints of a self-pipe used for
147 race-free signal handling */ 148 race-free signal handling */
148 149
149 time_t last_trx_packet_time; /* time of the last packet transmission, for 150 time_t last_trx_packet_time; /* time of the last packet transmission, for
150 keepalive purposes */ 151 keepalive purposes. Not real-world clock */
151 152
152 time_t last_packet_time; /* time of the last packet transmission or receive, for 153 time_t last_packet_time; /* time of the last packet transmission or receive, for
153 idle timeout purposes */ 154 idle timeout purposes. Not real-world clock */
154 155
155 156
156 /* KEX/encryption related */ 157 /* KEX/encryption related */
157 struct KEXState kexstate; 158 struct KEXState kexstate;
158 struct key_context *keys; 159 struct key_context *keys;