version 1.55, 2000/05/02 19:33:12 |
version 1.56, 2000/05/03 18:03:06 |
|
|
*/ |
*/ |
|
|
void |
void |
channel_input_port_forward_request(int is_root) |
channel_input_port_forward_request(int is_root, int gateway_ports) |
{ |
{ |
u_short port, host_port; |
u_short port, host_port; |
char *hostname; |
char *hostname; |
|
|
port); |
port); |
/* |
/* |
* Initiate forwarding, |
* Initiate forwarding, |
* bind port to localhost only (gateway ports == 0). |
|
*/ |
*/ |
channel_request_local_forwarding(port, hostname, host_port, 0); |
channel_request_local_forwarding(port, hostname, host_port, gateway_ports); |
|
|
/* Free the argument string. */ |
/* Free the argument string. */ |
xfree(hostname); |
xfree(hostname); |