version 1.27, 2012/06/11 10:06:35
|
version 1.28, 2012/08/03 03:27:09
|
|
|
// loaded and loading them can cause some stderr; | // loaded and loading them can cause some stderr; |
// use environment variable MIBS to override the default MIB modules. | // use environment variable MIBS to override the default MIB modules. |
// If there is no MIBS environment variable, add it in. | // If there is no MIBS environment variable, add it in. |
char* envVar; |
|
envVar = getenv("MIBS"); |
|
| |
if (envVar == NULL) |
setenv("MIBS", "", 0); |
{ |
|
putenv("MIBS="); |
|
} |
|
| |
// Initialize the mib reader | // Initialize the mib reader |
netsnmp_set_mib_directory(""); | netsnmp_set_mib_directory(""); |