comparison cli-session.c @ 754:2400b8685762

setup tcp after requesting a channel - might hide some DNS latency
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Apr 2013 07:51:13 +0800
parents d63ef1e211ea
children 7dcb46da72d9
comparison
equal deleted inserted replaced
753:d63ef1e211ea 754:2400b8685762
264 dropbear_exit("Backgrounding failed: %d %s", 264 dropbear_exit("Backgrounding failed: %d %s",
265 errno, strerror(errno)); 265 errno, strerror(errno));
266 } 266 }
267 } 267 }
268 268
269 #ifdef ENABLE_CLI_LOCALTCPFWD
270 setup_localtcp();
271 #endif
272 #ifdef ENABLE_CLI_REMOTETCPFWD
273 setup_remotetcp();
274 #endif
275
276 #ifdef ENABLE_CLI_NETCAT 269 #ifdef ENABLE_CLI_NETCAT
277 if (cli_opts.netcat_host) { 270 if (cli_opts.netcat_host) {
278 cli_send_netcat_request(); 271 cli_send_netcat_request();
279 } else 272 } else
280 #endif 273 #endif
281 if (!cli_opts.no_cmd) { 274 if (!cli_opts.no_cmd) {
282 cli_send_chansess_request(); 275 cli_send_chansess_request();
283 } 276 }
277
278 #ifdef ENABLE_CLI_LOCALTCPFWD
279 setup_localtcp();
280 #endif
281 #ifdef ENABLE_CLI_REMOTETCPFWD
282 setup_remotetcp();
283 #endif
284
284 TRACE(("leave cli_sessionloop: running")) 285 TRACE(("leave cli_sessionloop: running"))
285 cli_ses.state = SESSION_RUNNING; 286 cli_ses.state = SESSION_RUNNING;
286 return; 287 return;
287 288
288 case SESSION_RUNNING: 289 case SESSION_RUNNING: