version 1.282, 2006/07/11 10:12:07 |
version 1.283, 2006/07/11 18:50:48 |
|
|
options.local_forwards[i].connect_port, |
options.local_forwards[i].connect_port, |
options.gateway_ports); |
options.gateway_ports); |
} |
} |
|
if (i > 0 && success != i && options.exit_on_forward_failure) |
|
fatal("Could not request local forwarding."); |
if (i > 0 && success == 0) |
if (i > 0 && success == 0) |
error("Could not request local forwarding."); |
error("Could not request local forwarding."); |
|
|
|
|
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_port); |
options.remote_forwards[i].connect_port); |
channel_request_remote_forwarding( |
if (channel_request_remote_forwarding( |
options.remote_forwards[i].listen_host, |
options.remote_forwards[i].listen_host, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_port); |
options.remote_forwards[i].connect_port) < 0) { |
|
if (options.exit_on_forward_failure) |
|
fatal("Could not request remote forwarding."); |
|
else |
|
logit("Warning: Could not request remote " |
|
"forwarding."); |
|
} |
} |
} |
} |
} |
|
|
|
|
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_port); |
options.remote_forwards[i].connect_port); |
if (type == SSH2_MSG_REQUEST_FAILURE) |
if (type == SSH2_MSG_REQUEST_FAILURE) { |
logit("Warning: remote port forwarding failed for listen " |
if (options.exit_on_forward_failure) |
"port %d", options.remote_forwards[i].listen_port); |
fatal("Error: remote port forwarding failed for " |
|
"listen port %d", |
|
options.remote_forwards[i].listen_port); |
|
else |
|
logit("Warning: remote port forwarding failed for " |
|
"listen port %d", |
|
options.remote_forwards[i].listen_port); |
|
} |
} |
} |
|
|
static void |
static void |