Mercurial > dropbear
comparison session.h @ 939:a0819ecfee0b
Make -K keepalive behave like OpenSSH's ServerAliveInterval
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 09 Jul 2014 00:15:20 +0800 |
parents | 7cd89d4e0335 |
children | e9dfb6d15193 |
comparison
equal
deleted
inserted
replaced
938:c88dce72f6d2 | 939:a0819ecfee0b |
---|---|
145 unsigned char lastpacket; /* What the last received packet type was */ | 145 unsigned char lastpacket; /* What the last received packet type was */ |
146 | 146 |
147 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 |
148 race-free signal handling */ | 148 race-free signal handling */ |
149 | 149 |
150 time_t last_trx_packet_time; /* time of the last packet transmission, for | 150 /* time of the last packet send/receive, for keepalive. Not real-world clock */ |
151 keepalive purposes. Not real-world clock */ | 151 time_t last_packet_time_keepalive_sent; |
152 | 152 time_t last_packet_time_keepalive_recv; |
153 time_t last_packet_time; /* time of the last packet transmission or receive, for | 153 time_t last_packet_time_any_sent; |
154 idle timeout purposes. Not real-world clock */ | 154 |
155 time_t last_packet_time_idle; /* time of the last packet transmission or receive, for | |
156 idle timeout purposes so ignores SSH_MSG_IGNORE | |
157 or responses to keepalives. Not real-world clock */ | |
155 | 158 |
156 | 159 |
157 /* KEX/encryption related */ | 160 /* KEX/encryption related */ |
158 struct KEXState kexstate; | 161 struct KEXState kexstate; |
159 struct key_context *keys; | 162 struct key_context *keys; |