85 |
int log_mode; |
int log_mode; |
86 |
|
|
87 |
static int foreground; /* Stay in the foreground */ |
static int foreground; /* Stay in the foreground */ |
88 |
static int spawn_flag; |
int spawn_flag; |
89 |
|
|
90 |
int use_dbm = 0; |
int use_dbm = 0; |
91 |
int auth_detail = 0; |
int auth_detail = 0; |
324 |
|
|
325 |
radiusd_pid = getpid(); |
radiusd_pid = getpid(); |
326 |
radius_input = input_create(); |
radius_input = input_create(); |
|
input_register_method(radius_input, "udp", |
|
|
udp_input_handler, |
|
|
udp_input_close, |
|
|
udp_input_cmp); |
|
327 |
input_register_method(radius_input, "rpp", |
input_register_method(radius_input, "rpp", |
328 |
rpp_input_handler, |
rpp_input_handler, |
329 |
rpp_input_close, |
rpp_input_close, |
330 |
NULL); |
NULL); |
331 |
|
input_register_method(radius_input, "udp", |
332 |
|
udp_input_handler, |
333 |
|
udp_input_close, |
334 |
|
udp_input_cmp); |
335 |
#ifdef HAVE_SETVBUF |
#ifdef HAVE_SETVBUF |
336 |
setvbuf(stdout, NULL, _IOLBF, 0); |
setvbuf(stdout, NULL, _IOLBF, 0); |
337 |
#endif |
#endif |
1131 |
{ NULL, } |
{ NULL, } |
1132 |
}; |
}; |
1133 |
|
|
|
struct cfg_stmt proxy_stmt[] = { |
|
|
{ "max-requests", CS_STMT, NULL, |
|
|
cfg_get_integer, &request_class[R_PROXY].max_requests, |
|
|
NULL, NULL }, |
|
|
{ "request-cleanup-delay", CS_STMT, NULL, |
|
|
cfg_get_integer, &request_class[R_PROXY].cleanup_delay, |
|
|
NULL, NULL }, |
|
|
{ NULL, } |
|
|
}; |
|
|
|
|
1134 |
struct cfg_stmt config_syntax[] = { |
struct cfg_stmt config_syntax[] = { |
1135 |
{ "option", CS_BLOCK, NULL, NULL, NULL, option_stmt, NULL }, |
{ "option", CS_BLOCK, NULL, NULL, NULL, option_stmt, NULL }, |
1136 |
{ "message", CS_BLOCK, NULL, NULL, NULL, message_stmt, NULL }, |
{ "message", CS_BLOCK, NULL, NULL, NULL, message_stmt, NULL }, |
1138 |
logging_stmt, logging_stmt_end }, |
logging_stmt, logging_stmt_end }, |
1139 |
{ "auth", CS_BLOCK, auth_stmt_begin, NULL, NULL, auth_stmt, NULL }, |
{ "auth", CS_BLOCK, auth_stmt_begin, NULL, NULL, auth_stmt, NULL }, |
1140 |
{ "acct", CS_BLOCK, acct_stmt_begin, NULL, NULL, acct_stmt, NULL }, |
{ "acct", CS_BLOCK, acct_stmt_begin, NULL, NULL, acct_stmt, NULL }, |
|
{ "proxy", CS_BLOCK, NULL, NULL, NULL, proxy_stmt, NULL }, |
|
1141 |
{ "rewrite", CS_BLOCK, NULL, NULL, NULL, rewrite_stmt, NULL }, |
{ "rewrite", CS_BLOCK, NULL, NULL, NULL, rewrite_stmt, NULL }, |
1142 |
{ "filters", CS_BLOCK, filters_stmt_term, NULL, NULL, filters_stmt, |
{ "filters", CS_BLOCK, filters_stmt_term, NULL, NULL, filters_stmt, |
1143 |
NULL }, |
NULL }, |