218 |
snmp_free_communities(); |
snmp_free_communities(); |
219 |
snmp_free_acl(); |
snmp_free_acl(); |
220 |
_opened_snmp_sockets = 0; |
_opened_snmp_sockets = 0; |
221 |
} else if (radius_mode == MODE_DAEMON && !_opened_snmp_sockets) |
} else if (radius_mode == MODE_DAEMON |
222 |
|
&& !_opened_snmp_sockets |
223 |
|
&& snmp_port) |
224 |
udp_open(R_SNMP, INADDR_ANY, snmp_port, 1); |
udp_open(R_SNMP, INADDR_ANY, snmp_port, 1); |
225 |
return 0; |
return 0; |
226 |
} |
} |
290 |
{ |
{ |
291 |
int i, errcnt = 0; |
int i, errcnt = 0; |
292 |
|
|
293 |
|
if (argc == 2 && argv[1].type == CFG_BOOLEAN) { |
294 |
|
if (argv[1].v.bool == 0) |
295 |
|
snmp_port = 0; |
296 |
|
return 0; |
297 |
|
} |
298 |
|
|
299 |
for (i = 1; i < argc; i++) |
for (i = 1; i < argc; i++) |
300 |
if (argv[i].type != CFG_HOST) { |
if (argv[i].type != CFG_HOST) { |
301 |
cfg_type_error(CFG_HOST); |
cfg_type_error(CFG_HOST); |