- (configure, configure.in, mib_modules.c, mib_modules.h, snmpd.c):
- new -I switch to snmpd to do dynamic determinaton of which mib
modules to initialize (and hence which mib tree sections to support).
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@4230 06827809-a52a-0410-b366-d66718629ded
diff --git a/agent/snmpd.c b/agent/snmpd.c
index 162fb1f..920c0ac 100644
--- a/agent/snmpd.c
+++ b/agent/snmpd.c
@@ -305,6 +305,7 @@
int dont_zero_log = 0;
int stderr_log=0, syslog_log=0;
int uid=0, gid=0;
+ struct module_init_list *initlist;
logfile[0] = 0;
@@ -438,6 +439,12 @@
case 'A':
dont_zero_log = 1;
break;
+
+ case 'I':
+ if (++arg == argc) usage(argv[0]);
+ add_to_init_list(argv[arg]);
+ break;
+
#if HAVE_UNISTD_H
case 'u':
if (++arg == argc) usage(argv[0]);