/[radius]/radius/radiusd/snmpserv.c
ViewVC logotype

Diff of /radius/radiusd/snmpserv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.66 by gray, Tue Jul 29 10:17:06 2003 UTC revision 1.67 by gray, Thu Nov 6 14:33:55 2003 UTC
# Line 218  snmp_stmt_begin(int finish, void *data, Line 218  snmp_stmt_begin(int finish, void *data,
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  }  }
# Line 288  snmp_cfg_listen(int argc, cfg_value_t *a Line 290  snmp_cfg_listen(int argc, cfg_value_t *a
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);

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26