version 1.51, 2015/04/24 01:36:00 |
version 1.52, 2015/05/01 04:01:58 |
|
|
if (type == SSH2_MSG_REQUEST_SUCCESS) { |
if (type == SSH2_MSG_REQUEST_SUCCESS) { |
if (rfwd->listen_port == 0) { |
if (rfwd->listen_port == 0) { |
rfwd->allocated_port = packet_get_int(); |
rfwd->allocated_port = packet_get_int(); |
logit("Allocated port %u for mux remote forward" |
debug("Allocated port %u for mux remote forward" |
" to %s:%d", rfwd->allocated_port, |
" to %s:%d", rfwd->allocated_port, |
rfwd->connect_host, rfwd->connect_port); |
rfwd->connect_host, rfwd->connect_port); |
buffer_put_int(&out, MUX_S_REMOTE_PORT); |
buffer_put_int(&out, MUX_S_REMOTE_PORT); |
|
|
if (cancel_flag) |
if (cancel_flag) |
fatal("%s: got MUX_S_REMOTE_PORT for cancel", __func__); |
fatal("%s: got MUX_S_REMOTE_PORT for cancel", __func__); |
fwd->allocated_port = buffer_get_int(&m); |
fwd->allocated_port = buffer_get_int(&m); |
logit("Allocated port %u for remote forward to %s:%d", |
verbose("Allocated port %u for remote forward to %s:%d", |
fwd->allocated_port, |
fwd->allocated_port, |
fwd->connect_host ? fwd->connect_host : "", |
fwd->connect_host ? fwd->connect_host : "", |
fwd->connect_port); |
fwd->connect_port); |