version 1.14, 1999/09/30 04:30:03 |
version 1.15, 1999/09/30 05:03:05 |
|
|
fprintf(stderr, " -R listen-port:host:port Forward remote port to local address\n"); |
fprintf(stderr, " -R listen-port:host:port Forward remote port to local address\n"); |
fprintf(stderr, " These cause %s to listen for connections on a port, and\n", av0); |
fprintf(stderr, " These cause %s to listen for connections on a port, and\n", av0); |
fprintf(stderr, " forward them to the other side by connecting to host:port.\n"); |
fprintf(stderr, " forward them to the other side by connecting to host:port.\n"); |
#ifdef WITH_ZLIB |
|
fprintf(stderr, " -C Enable compression.\n"); |
fprintf(stderr, " -C Enable compression.\n"); |
#endif /* WITH_ZLIB */ |
|
fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); |
fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); |
exit(1); |
exit(1); |
} |
} |
|
|
add_local_forward(&options, fwd_port, buf, fwd_host_port); |
add_local_forward(&options, fwd_port, buf, fwd_host_port); |
break; |
break; |
|
|
#ifdef WITH_ZLIB |
|
case 'C': |
case 'C': |
options.compression = 1; |
options.compression = 1; |
break; |
break; |
#endif /* WITH_ZLIB */ |
|
|
|
case 'o': |
case 'o': |
dummy = 1; |
dummy = 1; |
|
|
setsid(); |
setsid(); |
} |
} |
|
|
#ifdef WITH_ZLIB |
|
/* Enable compression if requested. */ |
/* Enable compression if requested. */ |
if (options.compression) |
if (options.compression) |
{ |
{ |
|
|
else |
else |
packet_disconnect("Protocol error waiting for compression response."); |
packet_disconnect("Protocol error waiting for compression response."); |
} |
} |
#endif /* WITH_ZLIB */ |
|
|
|
/* Allocate a pseudo tty if appropriate. */ |
/* Allocate a pseudo tty if appropriate. */ |
if (tty_flag) |
if (tty_flag) |