| 23 |
#include <string.h> |
#include <string.h> |
| 24 |
#include <stdlib.h> |
#include <stdlib.h> |
| 25 |
#include <signal.h> |
#include <signal.h> |
| 26 |
|
#include <unistd.h> |
| 27 |
#include <sys/param.h> |
#include <sys/param.h> |
| 28 |
#include <sys/types.h> |
#include <sys/types.h> |
| 29 |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
#include <unistd.h> |
|
| 30 |
|
|
| 31 |
#define CONF_DELIM_WITH_SPACE " \t\r\n" |
#define CONF_DELIM_WITH_SPACE " \t\r\n" |
| 32 |
|
|
| 130 |
} |
} |
| 131 |
else if (strcasecmp(p, "bbs_port") == 0) |
else if (strcasecmp(p, "bbs_port") == 0) |
| 132 |
{ |
{ |
| 133 |
BBS_port = (in_port_t)atoi(q); |
BBS_port[0] = (in_port_t)atoi(q); |
| 134 |
} |
} |
| 135 |
else if (strcasecmp(p, "bbs_ssh") == 0) |
else if (strcasecmp(p, "bbs_ssh_port") == 0) |
| 136 |
{ |
{ |
| 137 |
BBS_ssh_v2 = (strcasecmp(q, "v2") == 0 ? 1 : 0); |
BBS_port[1] = (in_port_t)atoi(q); |
| 138 |
} |
} |
| 139 |
else if (strcasecmp(p, "bbs_max_client") == 0) |
else if (strcasecmp(p, "bbs_max_client") == 0) |
| 140 |
{ |
{ |