1125 |
void *block_data, void *handler_data) |
void *block_data, void *handler_data) |
1126 |
{ |
{ |
1127 |
int i, errcnt = 0; |
int i, errcnt = 0; |
1128 |
|
|
1129 |
|
if (argc == 2 && argv[1].type == CFG_BOOLEAN) { |
1130 |
|
if (argv[1].v.bool == 0) |
1131 |
|
auth_port = 0; |
1132 |
|
return 0; |
1133 |
|
} |
1134 |
|
|
1135 |
for (i = 1; i < argc; i++) |
for (i = 1; i < argc; i++) |
1136 |
if (argv[i].type != CFG_HOST) { |
if (argv[i].type != CFG_HOST) { |
1157 |
{ |
{ |
1158 |
if (!finish) |
if (!finish) |
1159 |
_opened_auth_sockets = 0; |
_opened_auth_sockets = 0; |
1160 |
else if (radius_mode == MODE_DAEMON && !_opened_auth_sockets) |
else if (radius_mode == MODE_DAEMON |
1161 |
|
&& !_opened_auth_sockets |
1162 |
|
&& auth_port) |
1163 |
udp_open(R_AUTH, INADDR_ANY, auth_port, 0); |
udp_open(R_AUTH, INADDR_ANY, auth_port, 0); |
1164 |
return 0; |
return 0; |
1165 |
} |
} |
1170 |
{ |
{ |
1171 |
int i, errcnt = 0; |
int i, errcnt = 0; |
1172 |
|
|
1173 |
|
if (argc == 2 && argv[1].type == CFG_BOOLEAN) { |
1174 |
|
if (argv[1].v.bool == 0) |
1175 |
|
acct_port = 0; |
1176 |
|
return 0; |
1177 |
|
} |
1178 |
|
|
1179 |
for (i = 1; i < argc; i++) |
for (i = 1; i < argc; i++) |
1180 |
if (argv[i].type != CFG_HOST) { |
if (argv[i].type != CFG_HOST) { |
1181 |
cfg_type_error(CFG_HOST); |
cfg_type_error(CFG_HOST); |
1199 |
{ |
{ |
1200 |
if (!finish) |
if (!finish) |
1201 |
_opened_acct_sockets = 0; |
_opened_acct_sockets = 0; |
1202 |
else if (radius_mode == MODE_DAEMON && !_opened_acct_sockets) |
else if (radius_mode == MODE_DAEMON |
1203 |
|
&& !_opened_acct_sockets |
1204 |
|
&& acct_port) |
1205 |
udp_open(R_ACCT, INADDR_ANY, acct_port, 0); |
udp_open(R_ACCT, INADDR_ANY, acct_port, 0); |
1206 |
return 0; |
return 0; |
1207 |
} |
} |