version 1.142, 2005/06/17 02:44:33 |
version 1.143, 2005/07/25 11:59:40 |
|
|
if (options->use_login == -1) |
if (options->use_login == -1) |
options->use_login = 0; |
options->use_login = 0; |
if (options->compression == -1) |
if (options->compression == -1) |
options->compression = 1; |
options->compression = COMP_DELAYED; |
if (options->allow_tcp_forwarding == -1) |
if (options->allow_tcp_forwarding == -1) |
options->allow_tcp_forwarding = 1; |
options->allow_tcp_forwarding = 1; |
if (options->gateway_ports == -1) |
if (options->gateway_ports == -1) |
|
|
|
|
case sCompression: |
case sCompression: |
intptr = &options->compression; |
intptr = &options->compression; |
goto parse_flag; |
arg = strdelim(&cp); |
|
if (!arg || *arg == '\0') |
|
fatal("%s line %d: missing yes/no/delayed " |
|
"argument.", filename, linenum); |
|
value = 0; /* silence compiler */ |
|
if (strcmp(arg, "delayed") == 0) |
|
value = COMP_DELAYED; |
|
else if (strcmp(arg, "yes") == 0) |
|
value = COMP_ZLIB; |
|
else if (strcmp(arg, "no") == 0) |
|
value = COMP_NONE; |
|
else |
|
fatal("%s line %d: Bad yes/no/delayed " |
|
"argument: %s", filename, linenum, arg); |
|
if (*intptr == -1) |
|
*intptr = value; |
|
break; |
|
|
case sGatewayPorts: |
case sGatewayPorts: |
intptr = &options->gateway_ports; |
intptr = &options->gateway_ports; |