diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-27 23:42:46 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-27 23:42:46 +0000 |
commit | e29f497cf007bae88b852fcc5e6c8ce2dbef66e5 (patch) | |
tree | cf5b21ff6455552d2eb3e76a624797c32079328f /daemon/snmp-help.c | |
parent | cadd830e5aca1f208541ea6d38da5b4a863db5cc (diff) |
Make the MIB directory configurable.
Diffstat (limited to 'daemon/snmp-help.c')
-rw-r--r-- | daemon/snmp-help.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/snmp-help.c b/daemon/snmp-help.c index 8a54bb1..4ae7cb1 100644 --- a/daemon/snmp-help.c +++ b/daemon/snmp-help.c @@ -48,6 +48,7 @@ /* Whether we print warnings when loading MIBs or not */ extern int g_mib_warnings; +extern const char* g_mib_directory; static int parse_mixed_mib(const char* mib, struct asn_oid* oid) @@ -84,7 +85,7 @@ parse_mixed_mib(const char* mib, struct asn_oid* oid) if(*t || sub < 0) { /* Only initializes first time around */ - rb_mib_init(g_mib_warnings); + rb_mib_init(g_mib_directory, g_mib_warnings); /* * If we haven't parsed anything yet, try a symbolic @@ -154,7 +155,7 @@ rb_snmp_parse_mib(const char* mib, struct snmp_value* value) /* Next try a symolic search */ if(ret == -1) { - rb_mib_init(g_mib_warnings); + rb_mib_init(g_mib_directory, g_mib_warnings); n = rb_mib_lookup(mib); if(n == NULL) |