comparison cli-runopts.c @ 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 5608a5a61c2a
children 17d874ae93a1
comparison
equal deleted inserted replaced
938:c88dce72f6d2 939:a0819ecfee0b
161 /* not yet 161 /* not yet
162 opts.ipv4 = 1; 162 opts.ipv4 = 1;
163 opts.ipv6 = 1; 163 opts.ipv6 = 1;
164 */ 164 */
165 opts.recv_window = DEFAULT_RECV_WINDOW; 165 opts.recv_window = DEFAULT_RECV_WINDOW;
166 opts.keepalive_secs = DEFAULT_KEEPALIVE;
167 opts.idle_timeout_secs = DEFAULT_IDLE_TIMEOUT;
166 168
167 fill_own_user(); 169 fill_own_user();
168 170
169 /* Iterate all the arguments */ 171 /* Iterate all the arguments */
170 for (i = 1; i < (unsigned int)argc; i++) { 172 for (i = 1; i < (unsigned int)argc; i++) {