version 1.243, 2005/06/16 03:38:36 |
version 1.244, 2005/06/17 22:53:46 |
|
|
int dummy; |
int dummy; |
extern int optind, optreset; |
extern int optind, optreset; |
extern char *optarg; |
extern char *optarg; |
|
struct servent *sp; |
Forward fwd; |
Forward fwd; |
|
|
/* |
/* |
|
|
fatal("No ControlPath specified for \"-O\" command"); |
fatal("No ControlPath specified for \"-O\" command"); |
if (options.control_path != NULL) |
if (options.control_path != NULL) |
control_client(options.control_path); |
control_client(options.control_path); |
|
|
|
/* Get default port if port has not been set. */ |
|
if (options.port == 0) { |
|
sp = getservbyname(SSH_SERVICE_NAME, "tcp"); |
|
options.port = sp ? ntohs(sp->s_port) : SSH_DEFAULT_PORT; |
|
} |
|
|
/* Open a connection to the remote host. */ |
/* Open a connection to the remote host. */ |
if (ssh_connect(host, &hostaddr, options.port, |
if (ssh_connect(host, &hostaddr, options.port, |