00001 /* 00002 * net-snmp configuration header file 00003 */ 00004 /* Portions of this file are subject to the following copyright(s). See 00005 * the Net-SNMP's COPYING file for more details and other copyrights 00006 * that may apply: 00007 */ 00008 /* 00009 * Portions of this file are copyrighted by: 00010 * Copyright © 2003 Sun Microsystems, Inc. All rights reserved. 00011 * Use is subject to license terms specified in the COPYING file 00012 * distributed with the Net-SNMP package. 00013 */ 00014 00015 #ifndef NET_SNMP_CONFIG_H 00016 #define NET_SNMP_CONFIG_H 00017 00018 00019 /* ********* NETSNMP_MARK_BEGIN_AUTOCONF_DEFINITIONS ********* */ 00020 /* 00021 * put all autoconf-specific definitions below here 00022 * 00023 */ 00024 #ifndef NETSNMP_NO_AUTOCONF_DEFINITIONS 00025 00026 00027 #if defined (WIN32) || defined (mingw32) || defined (cygwin) 00028 #define ENV_SEPARATOR ";" 00029 #define ENV_SEPARATOR_CHAR ';' 00030 #else 00031 #define ENV_SEPARATOR ":" 00032 #define ENV_SEPARATOR_CHAR ':' 00033 #endif 00034 00035 /* definitions added by configure on-the-fly */ 00036 @TOP@ 00037 @BOTTOM@ 00038 00039 /* end of definitions added by configure on-the-fly */ 00040 00041 /* If you have openssl 0.9.7 or above, you likely have AES support. */ 00042 #undef NETSNMP_USE_OPENSSL 00043 #if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT) 00044 #define HAVE_AES 1 00045 #endif 00046 00047 /* define random functions */ 00048 00049 #ifndef HAVE_RANDOM 00050 #ifdef HAVE_LRAND48 00051 #define random lrand48 00052 #define srandom(s) srand48(s) 00053 #else 00054 #ifdef HAVE_RAND 00055 #define random rand 00056 #define srandom(s) srand(s) 00057 #endif 00058 #endif 00059 #endif 00060 00061 /* define signal if DNE */ 00062 00063 #ifndef HAVE_SIGNAL 00064 #ifdef HAVE_SIGSET 00065 #define signal(a,b) sigset(a,b) 00066 #endif 00067 #endif 00068 00069 #if HAVE_DMALLOC_H 00070 #define DMALLOC_FUNC_CHECK 00071 #endif 00072 00073 #endif /* NETSNMP_NO_AUTOCONF_DEFINITIONS */ 00074 00075 00076 00077 00078 /* ********* NETSNMP_MARK_BEGIN_CLEAN_NAMESPACE ********* */ 00079 /* 00080 * put all new net-snmp-specific definitions here 00081 * 00082 * all definitions MUST have a NETSNMP_ prefix 00083 * 00084 */ 00085 00086 /* Default (SNMP) version number for the tools to use */ 00087 #define NETSNMP_DEFAULT_SNMP_VERSION 3 00088 00089 /* don't change these values! */ 00090 #define NETSNMP_SNMPV1 0xAAAA /* readable by anyone */ 00091 #define NETSNMP_SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */ 00092 #define NETSNMP_SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */ 00093 00094 /* default list of mibs to load */ 00095 #define NETSNMP_DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB" 00096 00097 /* debugging stuff */ 00098 /* if defined, we optimize the code to exclude all debugging calls. */ 00099 #undef NETSNMP_NO_DEBUGGING 00100 /* ignore the -D flag and always print debugging information */ 00101 #define NETSNMP_ALWAYS_DEBUG 0 00102 00103 /* reverse encoding BER packets is both faster and more efficient in space. */ 00104 #define NETSNMP_USE_REVERSE_ASNENCODING 1 00105 #define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */ 00106 00107 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving 00108 persisant information to this directory in the form of configuration 00109 lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */ 00110 #define NETSNMP_PERSISTENT_DIRECTORY "/var/snmp" 00111 00112 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create 00113 directories with. Since the data stored here is probably sensitive, it 00114 probably should be read-only by root/administrator. */ 00115 #define NETSNMP_AGENT_DIRECTORY_MODE 0700 00116 00117 /* MAX_PERSISTENT_BACKUPS: 00118 * The maximum number of persistent backups the library will try to 00119 * read from the persistent cache directory. If an application fails to 00120 * close down successfully more than this number of times, data will be lost. 00121 */ 00122 #define NETSNMP_MAX_PERSISTENT_BACKUPS 10 00123 00124 /* define the system type include file here */ 00125 #define NETSNMP_SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h> 00126 00127 /* define the machine (cpu) type include file here */ 00128 #define NETSNMP_MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h> 00129 00130 /* define the UDP buffer defaults undefined means use the OS buffers 00131 * by default */ 00132 #undef NETSNMP_DEFAULT_SERVER_SEND_BUF 00133 #undef NETSNMP_DEFAULT_SERVER_RECV_BUF 00134 #undef NETSNMP_DEFAULT_CLIENT_SEND_BUF 00135 #undef NETSNMP_DEFAULT_CLIENT_RECV_BUF 00136 00137 /* net-snmp's major path names */ 00138 #undef SNMPLIBPATH 00139 #undef SNMPSHAREPATH 00140 #undef SNMPCONFPATH 00141 #undef SNMPDLMODPATH 00142 00143 /* NETSNMP_LOGFILE: If defined it closes stdout/err/in and opens this in 00144 out/err's place. (stdin is closed so that sh scripts won't wait for it) */ 00145 #undef NETSNMP_LOGFILE 00146 00147 /* default system contact */ 00148 #undef NETSNMP_SYS_CONTACT 00149 00150 /* system location */ 00151 #undef NETSNMP_SYS_LOC 00152 00153 /* Use libwrap to handle allow/deny hosts? */ 00154 #undef NETSNMP_USE_LIBWRAP 00155 00156 /* Mib-2 tree Info */ 00157 /* These are the system information variables. */ 00158 00159 #define NETSNMP_VERS_DESC "unknown" /* overridden at run time */ 00160 #define NETSNMP_SYS_NAME "unknown" /* overridden at run time */ 00161 00162 /* comment out the second define to turn off functionality for any of 00163 these: (See README for details) */ 00164 00165 /* proc PROCESSNAME [MAX] [MIN] */ 00166 #define NETSNMP_PROCMIBNUM 2 00167 00168 /* exec/shell NAME COMMAND */ 00169 #define NETSNMP_SHELLMIBNUM 8 00170 00171 /* swap MIN */ 00172 #define NETSNMP_MEMMIBNUM 4 00173 00174 /* disk DISK MINSIZE */ 00175 #define NETSNMP_DISKMIBNUM 9 00176 00177 /* load 1 5 15 */ 00178 #define NETSNMP_LOADAVEMIBNUM 10 00179 00180 /* which version are you using? This mibloc will tell you */ 00181 #define NETSNMP_VERSIONMIBNUM 100 00182 00183 /* Reports errors the agent runs into */ 00184 /* (typically its "can't fork, no mem" problems) */ 00185 #define NETSNMP_ERRORMIBNUM 101 00186 00187 /* The sub id of EXTENSIBLEMIB returned to queries of 00188 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */ 00189 #define NETSNMP_AGENTID 250 00190 00191 /* This ID is returned after the AGENTID above. IE, the resulting 00192 value returned by a query to sysObjectID is 00193 EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */ 00194 00195 #define NETSNMP_HPUX9ID 1 00196 #define NETSNMP_SUNOS4ID 2 00197 #define NETSNMP_SOLARISID 3 00198 #define NETSNMP_OSFID 4 00199 #define NETSNMP_ULTRIXID 5 00200 #define NETSNMP_HPUX10ID 6 00201 #define NETSNMP_NETBSD1ID 7 00202 #define NETSNMP_FREEBSDID 8 00203 #define NETSNMP_IRIXID 9 00204 #define NETSNMP_LINUXID 10 00205 #define NETSNMP_BSDIID 11 00206 #define NETSNMP_OPENBSDID 12 00207 #define NETSNMP_WIN32ID 13 00208 #define NETSNMP_HPUX11ID 14 00209 #define NETSNMP_AIXID 15 00210 #define NETSNMP_MACOSXID 16 00211 #define NETSNMP_UNKNOWNID 255 00212 00213 #ifdef hpux9 00214 #define NETSNMP_OSTYPE NETSNMP_HPUX9ID 00215 #endif 00216 #ifdef hpux10 00217 #define NETSNMP_OSTYPE NETSNMP_HPUX10ID 00218 #endif 00219 #ifdef hpux11 00220 #define NETSNMP_OSTYPE NETSNMP_HPUX11ID 00221 #endif 00222 #ifdef sunos4 00223 #define NETSNMP_OSTYPE NETSNMP_SUNOS4ID 00224 #endif 00225 #ifdef solaris2 00226 #define NETSNMP_OSTYPE NETSNMP_SOLARISID 00227 #endif 00228 #if defined(osf3) || defined(osf4) || defined(osf5) 00229 #define NETSNMP_OSTYPE NETSNMP_OSFID 00230 #endif 00231 #ifdef ultrix4 00232 #define NETSNMP_OSTYPE NETSNMP_ULTRIXID 00233 #endif 00234 #if defined(netbsd1) || defined(netbsd2) 00235 #define NETSNMP_OSTYPE NETSNMP_NETBSD1ID 00236 #endif 00237 #if defined(__FreeBSD__) 00238 #define NETSNMP_OSTYPE NETSNMP_FREEBSDID 00239 #endif 00240 #if defined(irix6) || defined(irix5) 00241 #define NETSNMP_OSTYPE NETSNMP_IRIXID 00242 #endif 00243 #ifdef linux 00244 #define NETSNMP_OSTYPE NETSNMP_LINUXID 00245 #endif 00246 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4) 00247 #define NETSNMP_OSTYPE NETSNMP_BSDIID 00248 #endif 00249 #if defined(openbsd2) || defined(openbsd3) || defined(openbsd4) 00250 #define NETSNMP_OSTYPE NETSNMP_OPENBSDID 00251 #endif 00252 #ifdef WIN32 00253 #define NETSNMP_OSTYPE NETSNMP_WIN32ID 00254 #endif 00255 #if defined(aix3) || defined(aix4) || defined(aix5) || defined(aix6) 00256 #define NETSNMP_OSTYPE NETSNMP_AIXID 00257 #endif 00258 #if defined(darwin) && (darwin >= 8) 00259 #define NETSNMP_OSTYPE NETSNMP_MACOSXID 00260 #endif 00261 /* unknown */ 00262 #ifndef NETSNMP_OSTYPE 00263 #define NETSNMP_OSTYPE NETSNMP_UNKNOWNID 00264 #endif 00265 00266 /* The enterprise number has been assigned by the IANA group. */ 00267 /* Optionally, this may point to the location in the tree your */ 00268 /* company/organization has been allocated. */ 00269 /* The assigned enterprise number for the NET_SNMP MIB modules. */ 00270 #define NETSNMP_ENTERPRISE_OID 8072 00271 #define NETSNMP_ENTERPRISE_MIB 1,3,6,1,4,1,8072 00272 #define NETSNMP_ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072 00273 #define NETSNMP_ENTERPRISE_DOT_MIB_LENGTH 7 00274 00275 /* The assigned enterprise number for sysObjectID. */ 00276 #define NETSNMP_SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,NETSNMP_OSTYPE 00277 #define NETSNMP_SYSTEM_DOT_MIB 1.3.6.1.4.1.8072.3.2.NETSNMP_OSTYPE 00278 #define NETSNMP_SYSTEM_DOT_MIB_LENGTH 10 00279 00280 /* The assigned enterprise number for notifications. */ 00281 #define NETSNMP_NOTIFICATION_MIB 1,3,6,1,4,1,8072,4 00282 #define NETSNMP_NOTIFICATION_DOT_MIB 1.3.6.1.4.1.8072.4 00283 #define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH 8 00284 00285 /* this is the location of the ucdavis mib tree. It shouldn't be 00286 changed, as the places it is used are expected to be constant 00287 values or are directly tied to the UCD-SNMP-MIB. */ 00288 #define NETSNMP_UCDAVIS_OID 2021 00289 #define NETSNMP_UCDAVIS_MIB 1,3,6,1,4,1,2021 00290 #define NETSNMP_UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021 00291 #define NETSNMP_UCDAVIS_DOT_MIB_LENGTH 7 00292 00293 /* how long to wait (seconds) for error querys before reseting the error trap.*/ 00294 #define NETSNMP_ERRORTIMELENGTH 600 00295 00296 /* Exec command to fix PROC problems */ 00297 /* %s will be replaced by the process name in error */ 00298 00299 /* #define NETSNMP_PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 00300 00301 /* Exec command to fix EXEC problems */ 00302 /* %s will be replaced by the exec/script name in error */ 00303 00304 /* #define NETSNMP_EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 00305 00306 /* Should exec output Cashing be used (speeds up things greatly), and 00307 if so, After how many seconds should the cache re-newed? Note: 00308 Don't define CASHETIME to disable cashing completely */ 00309 00310 #define NETSNMP_EXCACHETIME 30 00311 #define NETSNMP_CACHEFILE ".snmp-exec-cache" 00312 #define NETSNMP_MAXCACHESIZE (200*80) /* roughly 200 lines max */ 00313 00314 /* misc defaults */ 00315 00316 /* default of 100 meg minimum if the minimum size is not specified in 00317 the config file */ 00318 #define NETSNMP_DEFDISKMINIMUMSPACE 100000 00319 00320 /* default maximum load average before error */ 00321 #define NETSNMP_DEFMAXLOADAVE 12.0 00322 00323 /* max times to loop reading output from execs. */ 00324 /* Because of sleep(1)s, this will also be time to wait (in seconds) for exec 00325 to finish */ 00326 #define NETSNMP_MAXREADCOUNT 100 00327 00328 /* Set if snmpgets should block and never timeout */ 00329 /* The original CMU code had this hardcoded as = 1 */ 00330 #define NETSNMP_SNMPBLOCK 1 00331 00332 /* How long to wait before restarting the agent after a snmpset to 00333 EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT. This is 00334 necessary to finish the snmpset reply before restarting. */ 00335 #define NETSNMP_RESTARTSLEEP 5 00336 00337 /* UNdefine to allow specifying zero-length community string */ 00338 /* #define NETSNMP_NO_ZEROLENGTH_COMMUNITY 1 */ 00339 00340 /* define to exit the agent on a bad kernel read */ 00341 /* #define NETSNMP_EXIT_ON_BAD_KLREAD */ 00342 00343 /* Number of community strings to store */ 00344 #define NETSNMP_NUM_COMMUNITIES 5 00345 00346 /* internal define */ 00347 #define NETSNMP_LASTFIELD -1 00348 00349 /* Pluggable transports. */ 00350 00351 /* This is defined if support for the UDP/IP transport domain is 00352 available. */ 00353 #undef NETSNMP_TRANSPORT_UDP_DOMAIN 00354 00355 /* This is defined if support for the "callback" transport domain is 00356 available. */ 00357 #undef NETSNMP_TRANSPORT_CALLBACK_DOMAIN 00358 00359 /* This is defined if support for the TCP/IP transport domain is 00360 available. */ 00361 #undef NETSNMP_TRANSPORT_TCP_DOMAIN 00362 00363 /* This is defined if support for the Unix transport domain 00364 (a.k.a. "local IPC") is available. */ 00365 #undef NETSNMP_TRANSPORT_UNIX_DOMAIN 00366 00367 /* This is defined if support for the AAL5 PVC transport domain is 00368 available. */ 00369 #undef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN 00370 00371 /* This is defined if support for the IPX transport domain is 00372 available. */ 00373 #undef NETSNMP_TRANSPORT_IPX_DOMAIN 00374 00375 /* This is defined if support for the UDP/IPv6 transport domain is 00376 available. */ 00377 #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 00378 00379 /* This is defined if support for the TCP/IPv6 transport domain is 00380 available. */ 00381 #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 00382 00383 /* This is defined if support for the TLS transport domain is 00384 available. */ 00385 #undef NETSNMP_TRANSPORT_TLS_DOMAIN 00386 00387 /* This is defined if support for the Alias transport domain is 00388 available. */ 00389 #undef NETSNMP_TRANSPORT_ALIAS_DOMAIN 00390 00391 /* This is defined if support for the SSH transport domain is 00392 available. */ 00393 #undef NETSNMP_TRANSPORT_SSH_DOMAIN 00394 00395 /* This is defined if support for the DTLS/UDP transport domain is 00396 available. */ 00397 #undef NETSNMP_TRANSPORT_DTLSUDP_DOMAIN 00398 00399 /* This is defined if support for stdin/out transport domain is available. */ 00400 #undef NETSNMP_TRANSPORT_STD_DOMAIN 00401 00402 /* define this if the USM security module is available */ 00403 #undef NETSNMP_SECMOD_USM 00404 00405 /* define this if the KSM (kerberos based snmp) security module is available */ 00406 #undef NETSNMP_SECMOD_KSM 00407 00408 /* define this if the local security module is available */ 00409 #undef NETSNMP_SECMOD_LOCALSM 00410 00411 /* define if configured as a "mini-agent" */ 00412 #undef NETSNMP_MINI_AGENT 00413 00414 /* this is the location of the net-snmp mib tree. It shouldn't be 00415 changed, as the places it is used are expected to be constant 00416 values or are directly tied to the UCD-SNMP-MIB. */ 00417 #define NETSNMP_OID 8072 00418 #define NETSNMP_MIB 1,3,6,1,4,1,8072 00419 #define NETSNMP_DOT_MIB 1.3.6.1.4.1.8072 00420 #define NETSNMP_DOT_MIB_LENGTH 7 00421 00422 /* pattern for temporary file names */ 00423 #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX" 00424 00425 /* 00426 * this must be before the system/machine includes, to allow them to 00427 * override and turn off inlining. To do so, they should do the 00428 * following: 00429 * 00430 * #undef NETSNMP_ENABLE_INLINE 00431 * #define NETSNMP_ENABLE_INLINE 0 00432 * 00433 * A user having problems with their compiler can also turn off 00434 * the use of inline by defining NETSNMP_NO_INLINE via their cflags: 00435 * 00436 * -DNETSNMP_NO_INLINE 00437 * 00438 * Header and source files should only test against NETSNMP_USE_INLINE: 00439 * 00440 * #ifdef NETSNMP_USE_INLINE 00441 * NETSNMP_INLINE function(int parm) { return parm -1; } 00442 * #endif 00443 * 00444 * Functions which should be static, regardless of whether or not inline 00445 * is available or enabled should use the NETSNMP_STATIC_INLINE macro, 00446 * like so: 00447 * 00448 * NETSNMP_STATIC_INLINE function(int parm) { return parm -1; } 00449 * 00450 * NOT like this: 00451 * 00452 * static NETSNMP_INLINE function(int parm) { return parm -1; } 00453 * 00454 */ 00455 #ifdef NETSNMP_BROKEN_INLINE 00456 # define NETSNMP_ENABLE_INLINE 0 00457 #else 00458 # define NETSNMP_ENABLE_INLINE 1 00459 #endif 00460 00461 #include NETSNMP_SYSTEM_INCLUDE_FILE 00462 #include NETSNMP_MACHINE_INCLUDE_FILE 00463 00464 #if NETSNMP_ENABLE_INLINE && !defined(NETSNMP_NO_INLINE) 00465 # define NETSNMP_USE_INLINE 1 00466 # ifndef NETSNMP_INLINE 00467 # define NETSNMP_INLINE inline 00468 # endif 00469 # ifndef NETSNMP_STATIC_INLINE 00470 # define NETSNMP_STATIC_INLINE static inline 00471 # endif 00472 #else 00473 # define NETSNMP_INLINE 00474 # define NETSNMP_STATIC_INLINE static 00475 #endif 00476 00477 #ifndef NETSNMP_IMPORT 00478 # define NETSNMP_IMPORT extern 00479 #endif 00480 00481 /* comment the next line if you are compiling with libsnmp.h 00482 and are not using the UC-Davis SNMP library. */ 00483 #define UCD_SNMP_LIBRARY 1 00484 00485 /* add in recent CMU library extensions (not complete) */ 00486 #undef CMU_COMPATIBLE 00487 00488 /* final conclusion on nlist usage */ 00489 #if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(NETSNMP_DONT_USE_NLIST) && !defined(NETSNMP_NO_KMEM_USAGE) 00490 #define NETSNMP_CAN_USE_NLIST 00491 #endif 00492 00493 00494 /* ********* NETSNMP_MARK_BEGIN_LEGACY_DEFINITIONS *********/ 00495 /* 00496 * existing definitions prior to Net-SNMP 5.4 00497 * 00498 * do not add anything new here 00499 * 00500 */ 00501 00502 #ifndef NETSNMP_NO_LEGACY_DEFINITIONS 00503 00504 #ifdef NETSNMP_DEFAULT_SNMP_VERSION 00505 # define DEFAULT_SNMP_VERSION NETSNMP_DEFAULT_SNMP_VERSION 00506 #endif 00507 00508 #ifdef NETSNMP_SNMPV1 00509 # define SNMPV1 NETSNMP_SNMPV1 00510 #endif 00511 00512 #ifdef NETSNMP_SNMPV2ANY 00513 # define SNMPV2ANY NETSNMP_SNMPV2ANY 00514 #endif 00515 00516 #ifdef NETSNMP_SNMPV2AUTH 00517 # define SNMPV2AUTH NETSNMP_SNMPV2AUTH 00518 #endif 00519 00520 #ifdef NETSNMP_DEFAULT_MIBS 00521 # define DEFAULT_MIBS NETSNMP_DEFAULT_MIBS 00522 #endif 00523 00524 #ifdef NETSNMP_DEFAULT_MIBDIRS 00525 # define DEFAULT_MIBDIRS NETSNMP_DEFAULT_MIBDIRS 00526 #endif 00527 00528 #ifdef NETSNMP_DEFAULT_MIBFILES 00529 # define DEFAULT_MIBFILES NETSNMP_DEFAULT_MIBFILES 00530 #endif 00531 00532 #ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 00533 # define OPAQUE_SPECIAL_TYPES NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 00534 #endif 00535 00536 #ifdef NETSNMP_ENABLE_SCAPI_AUTHPRIV 00537 # define SCAPI_AUTHPRIV NETSNMP_ENABLE_SCAPI_AUTHPRIV 00538 #endif 00539 00540 #ifdef NETSNMP_USE_INTERNAL_MD5 00541 # define USE_INTERNAL_MD5 NETSNMP_USE_INTERNAL_MD5 00542 #endif 00543 00544 #ifdef NETSNMP_USE_PKCS11 00545 # define USE_PKCS NETSNMP_USE_PKCS11 00546 #endif 00547 00548 #ifdef NETSNMP_USE_OPENSSL 00549 # define USE_OPENSSL NETSNMP_USE_OPENSSL 00550 #endif 00551 00552 #ifdef NETSNMP_NO_DEBUGGING 00553 # define SNMP_NO_DEBUGGING NETSNMP_NO_DEBUGGING 00554 #endif 00555 00556 #ifdef NETSNMP_ALWAYS_DEBUG 00557 # define SNMP_ALWAYS_DEBUG NETSNMP_ALWAYS_DEBUG 00558 #endif 00559 00560 #ifdef NETSNMP_USE_REVERSE_ASNENCODING 00561 # define USE_REVERSE_ASNENCODING NETSNMP_USE_REVERSE_ASNENCODING 00562 #endif 00563 #ifdef NETSNMP_DEFAULT_ASNENCODING_DIRECTION 00564 # define DEFAULT_ASNENCODING_DIRECTION NETSNMP_DEFAULT_ASNENCODING_DIRECTION 00565 #endif 00566 00567 #define PERSISTENT_DIRECTORY NETSNMP_PERSISTENT_DIRECTORY 00568 #define PERSISTENT_MASK NETSNMP_PERSISTENT_MASK 00569 #define AGENT_DIRECTORY_MODE NETSNMP_AGENT_DIRECTORY_MODE 00570 #define MAX_PERSISTENT_BACKUPS NETSNMP_MAX_PERSISTENT_BACKUPS 00571 #define SYSTEM_INCLUDE_FILE NETSNMP_SYSTEM_INCLUDE_FILE 00572 #define MACHINE_INCLUDE_FILE NETSNMP_MACHINE_INCLUDE_FILE 00573 00574 #ifdef NETSNMP_DEFAULT_SERVER_SEND_BUF 00575 # define DEFAULT_SERVER_SEND_BUF NETSNMP_DEFAULT_SERVER_SEND_BUF 00576 #endif 00577 #ifdef NETSNMP_DEFAULT_SERVER_RECV_BUF 00578 # define DEFAULT_SERVER_RECV_BUF NETSNMP_DEFAULT_SERVER_RECV_BUF 00579 #endif 00580 #ifdef NETSNMP_DEFAULT_CLIENT_SEND_BUF 00581 # define DEFAULT_CLIENT_SEND_BUF NETSNMP_DEFAULT_CLIENT_SEND_BUF 00582 #endif 00583 #ifdef NETSNMP_DEFAULT_CLIENT_RECV_BUF 00584 # define DEFAULT_CLIENT_RECV_BUF NETSNMP_DEFAULT_CLIENT_RECV_BUF 00585 #endif 00586 00587 #ifdef NETSNMP_LOGFILE 00588 # define LOGFILE NETSNMP_LOGFILE 00589 #endif 00590 00591 #ifdef NETSNMP_SYS_CONTACT 00592 # define SYS_CONTACT NETSNMP_SYS_CONTACT 00593 #endif 00594 00595 #ifdef NETSNMP_SYS_LOC 00596 # define SYS_LOC NETSNMP_SYS_LOC 00597 #endif 00598 00599 #ifdef NETSNMP_USE_LIBWRAP 00600 # define USE_LIBWRAP NETSNMP_USE_LIBWRAP 00601 #endif 00602 00603 #ifdef NETSNMP_ENABLE_TESTING_CODE 00604 # define SNMP_TESTING_CODE NETSNMP_ENABLE_TESTING_CODE 00605 #endif 00606 00607 #ifdef NETSNMP_NO_ROOT_ACCESS 00608 # define NO_ROOT_ACCESS NETSNMP_NO_ROOT_ACCESS 00609 #endif 00610 00611 #ifdef NETSNMP_NO_KMEM_USAGE 00612 # define NO_KMEM_USAGE NETSNMP_NO_KMEM_USAGE 00613 #endif 00614 00615 #ifdef NETSNMP_NO_DUMMY_VALUES 00616 # define NO_DUMMY_VALUES NETSNMP_NO_DUMMY_VALUES 00617 #endif 00618 00619 #define VERS_DESC NETSNMP_VERS_DESC 00620 #define SYS_NAME NETSNMP_SYS_NAME 00621 00622 #define PROCMIBNUM NETSNMP_PROCMIBNUM 00623 #define SHELLMIBNUM NETSNMP_SHELLMIBNUM 00624 #define MEMMIBNUM NETSNMP_MEMMIBNUM 00625 #define DISKMIBNUM NETSNMP_DISKMIBNUM 00626 00627 #define LOADAVEMIBNUM NETSNMP_LOADAVEMIBNUM 00628 #define VERSIONMIBNUM NETSNMP_VERSIONMIBNUM 00629 #define ERRORMIBNUM NETSNMP_ERRORMIBNUM 00630 #define AGENTID NETSNMP_AGENTID 00631 00632 #define HPUX9ID NETSNMP_HPUX9ID 00633 #define SUNOS4ID NETSNMP_SUNOS4ID 00634 #define SOLARISID NETSNMP_SOLARISID 00635 #define OSFID NETSNMP_OSFID 00636 #define ULTRIXID NETSNMP_ULTRIXID 00637 #define HPUX10ID NETSNMP_HPUX10ID 00638 #define NETBSD1ID NETSNMP_NETBSD1ID 00639 #define FREEBSDID NETSNMP_FREEBSDID 00640 #define IRIXID NETSNMP_IRIXID 00641 #define LINUXID NETSNMP_LINUXID 00642 #define BSDIID NETSNMP_BSDIID 00643 #define OPENBSDID NETSNMP_OPENBSDID 00644 #define WIN32ID NETSNMP_WIN32ID 00645 #define HPUX11ID NETSNMP_HPUX11ID 00646 #define AIXID NETSNMP_AIXID 00647 #define MACOSXID NETSNMP_MACOSXID 00648 #define UNKNOWNID NETSNMP_UNKNOWNID 00649 00650 #define ENTERPRISE_OID NETSNMP_ENTERPRISE_OID 00651 #define ENTERPRISE_MIB NETSNMP_ENTERPRISE_MIB 00652 #define ENTERPRISE_DOT_MIB NETSNMP_ENTERPRISE_DOT_MIB 00653 #define ENTERPRISE_DOT_MIB_LENGTH NETSNMP_ENTERPRISE_DOT_MIB_LENGTH 00654 00655 #define SYSTEM_MIB NETSNMP_SYSTEM_MIB 00656 #define SYSTEM_DOT_MIB NETSNMP_SYSTEM_DOT_MIB 00657 #define SYSTEM_DOT_MIB_LENGTH NETSNMP_SYSTEM_DOT_MIB_LENGTH 00658 00659 #define NOTIFICATION_MIB NETSNMP_NOTIFICATION_MIB 00660 #define NOTIFICATION_DOT_MIB NETSNMP_NOTIFICATION_DOT_MIB 00661 #define NOTIFICATION_DOT_MIB_LENGTH NETSNMP_NOTIFICATION_DOT_MIB_LENGTH 00662 00663 #define UCDAVIS_OID NETSNMP_UCDAVIS_OID 00664 #define UCDAVIS_MIB NETSNMP_UCDAVIS_MIB 00665 #define UCDAVIS_DOT_MIB NETSNMP_UCDAVIS_DOT_MIB 00666 #define UCDAVIS_DOT_MIB_LENGTH NETSNMP_UCDAVIS_DOT_MIB_LENGTH 00667 00668 #define ERRORTIMELENGTH NETSNMP_ERRORTIMELENGTH 00669 00670 #ifdef NETSNMP_PROCFIXCMD 00671 # define PROCFIXCMD NETSNMP_PROCFIXCMD 00672 #endif 00673 00674 #ifdef NETSNMP_EXECFIXCMD 00675 # define EXECFIXCMD NETSNMP_EXECFIXCMD 00676 #endif 00677 00678 #define EXCACHETIME NETSNMP_EXCACHETIME 00679 #define CACHEFILE NETSNMP_CACHEFILE 00680 #define MAXCACHESIZE NETSNMP_MAXCACHESIZE 00681 00682 #define DEFDISKMINIMUMSPACE NETSNMP_DEFDISKMINIMUMSPACE 00683 #define DEFMAXLOADAVE NETSNMP_DEFMAXLOADAVE 00684 #define MAXREADCOUNT NETSNMP_MAXREADCOUNT 00685 00686 #define SNMPBLOCK NETSNMP_SNMPBLOCK 00687 #define RESTARTSLEEP NETSNMP_RESTARTSLEEP 00688 00689 #define NUM_COMMUNITIES NETSNMP_NUM_COMMUNITIES 00690 00691 #ifdef NETSNMP_NO_ZEROLENGTH_COMMUNITY 00692 # define NO_ZEROLENGTH_COMMUNITY NETSNMP_NO_ZEROLENGTH_COMMUNITY 00693 #endif 00694 00695 #ifdef NETSNMP_EXIT_ON_BAD_KLREAD 00696 # define EXIT_ON_BAD_KLREAD NETSNMP_EXIT_ON_BAD_KLREAD 00697 #endif 00698 00699 #define LASTFIELD NETSNMP_LASTFIELD 00700 00701 #define CONFIGURE_OPTIONS NETSNMP_CONFIGURE_OPTIONS 00702 00703 #ifdef NETSNMP_TRANSPORT_UDP_DOMAIN 00704 # define SNMP_TRANSPORT_UDP_DOMAIN NETSNMP_TRANSPORT_UDP_DOMAIN 00705 #endif 00706 00707 #ifdef NETSNMP_TRANSPORT_CALLBACK_DOMAIN 00708 # define SNMP_TRANSPORT_CALLBACK_DOMAIN NETSNMP_TRANSPORT_CALLBACK_DOMAIN 00709 #endif 00710 00711 #ifdef NETSNMP_TRANSPORT_TCP_DOMAIN 00712 # define SNMP_TRANSPORT_TCP_DOMAIN NETSNMP_TRANSPORT_TCP_DOMAIN 00713 #endif 00714 00715 #ifdef NETSNMP_TRANSPORT_UNIX_DOMAIN 00716 # define SNMP_TRANSPORT_UNIX_DOMAIN NETSNMP_TRANSPORT_UNIX_DOMAIN 00717 #endif 00718 00719 #ifdef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN 00720 # define SNMP_TRANSPORT_AAL5PVC_DOMAIN NETSNMP_TRANSPORT_AAL5PVC_DOMAIN 00721 #endif 00722 00723 #ifdef NETSNMP_TRANSPORT_IPX_DOMAIN 00724 # define SNMP_TRANSPORT_IPX_DOMAIN NETSNMP_TRANSPORT_IPX_DOMAIN 00725 #endif 00726 00727 #ifdef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 00728 # define SNMP_TRANSPORT_UDPIPV6_DOMAIN NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 00729 #endif 00730 00731 #ifdef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 00732 # define SNMP_TRANSPORT_TCPIPV6_DOMAIN NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 00733 #endif 00734 00735 #ifdef NETSNMP_TRANSPORT_TLS_DOMAIN 00736 # define SNMP_TRANSPORT_TLS_DOMAIN NETSNMP_TRANSPORT_TLS_DOMAIN 00737 #endif 00738 00739 #ifdef NETSNMP_TRANSPORT_STD_DOMAIN 00740 # define SNMP_TRANSPORT_STD_DOMAIN NETSNMP_TRANSPORT_STD_DOMAIN 00741 #endif 00742 00743 #ifdef NETSNMP_SECMOD_USM 00744 # define SNMP_SECMOD_USM NETSNMP_SECMOD_USM 00745 #endif 00746 00747 #ifdef NETSNMP_SECMOD_KSM 00748 # define SNMP_SECMOD_KSM NETSNMP_SECMOD_KSM 00749 #endif 00750 00751 #ifdef NETSNMP_SECMOD_LOCALSM 00752 # define SNMP_SECMOD_LOCALSM NETSNMP_SECMOD_LOCALSM 00753 #endif 00754 00755 #ifdef NETSNMP_REENTRANT 00756 # define NS_REENTRANT NETSNMP_REENTRANT 00757 #endif 00758 00759 #ifdef NETSNMP_ENABLE_IPV6 00760 # define INET6 NETSNMP_ENABLE_IPV6 00761 #endif 00762 00763 #ifdef NETSNMP_ENABLE_LOCAL_SMUX 00764 # define LOCAL_SMUX NETSNMP_ENABLE_LOCAL_SMUX 00765 #endif 00766 00767 #ifdef NETSNMP_AGENTX_DOM_SOCK_ONLY 00768 # define AGENTX_DOM_SOCK_ONLY NETSNMP_AGENTX_DOM_SOCK_ONLY 00769 #endif 00770 00771 #ifdef NETSNMP_SNMPTRAPD_DISABLE_AGENTX 00772 # define SNMPTRAPD_DISABLE_AGENTX 00773 #endif 00774 00775 #ifdef NETSNMP_USE_KERBEROS_MIT 00776 # define MIT_NEW_CRYPTO NETSNMP_USE_KERBEROS_MIT 00777 #endif 00778 00779 #ifdef NETSNMP_USE_KERBEROS_HEIMDAL 00780 # define HEIMDAL NETSNMP_USE_KERBEROS_HEIMDAL 00781 #endif 00782 00783 #ifdef NETSNMP_AGENTX_SOCKET 00784 # define AGENTX_SOCKET NETSNMP_AGENTX_SOCKET 00785 #endif 00786 00787 #ifdef NETSNMP_DISABLE_MIB_LOADING 00788 # define DISABLE_MIB_LOADING NETSNMP_DISABLE_MIB_LOADING 00789 #endif 00790 00791 #ifdef NETSNMP_DISABLE_SNMPV1 00792 # define DISABLE_SNMPV1 NETSNMP_DISABLE_SNMPV1 00793 #endif 00794 00795 #ifdef NETSNMP_DISABLE_SNMPV2C 00796 # define DISABLE_SNMPV2C NETSNMP_DISABLE_SNMPV2C 00797 #endif 00798 00799 #ifdef NETSNMP_DISABLE_SET_SUPPORT 00800 # define DISABLE_SET_SUPPORT NETSNMP_DISABLE_SET_SUPPORT 00801 #endif 00802 00803 #ifdef NETSNMP_DISABLE_DES 00804 # define DISABLE_DES NETSNMP_DISABLE_DES 00805 #endif 00806 00807 #ifdef NETSNMP_DISABLE_MD5 00808 # define DISABLE_MD5 NETSNMP_DISABLE_MD5 00809 #endif 00810 00811 #ifdef NETSNMP_DONT_USE_NLIST 00812 # define DONT_USE_NLIST NETSNMP_DONT_USE_NLIST 00813 #endif 00814 00815 #ifdef NETSNMP_CAN_USE_NLIST 00816 # define CAN_USE_NLIST NETSNMP_CAN_USE_NLIST 00817 #endif 00818 00819 #ifdef NETSNMP_CAN_USE_SYSCTL 00820 # define CAN_USE_SYSCTL NETSNMP_CAN_USE_SYSCTL 00821 #endif 00822 00823 #endif /* NETSNMP_NO_LEGACY_DEFINITIONS */ 00824 00825 00826 #endif /* NET_SNMP_CONFIG_H */
Last modified: Wednesday, 01-Aug-2018 04:41:28 UTC
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.