00001 /* Portions of this file are subject to the following copyright(s). See 00002 * the Net-SNMP's COPYING file for more details and other copyrights 00003 * that may apply: 00004 */ 00005 /* 00006 * Portions of this file are copyrighted by: 00007 * Copyright © 2003 Sun Microsystems, Inc. All rights reserved. 00008 * Use is subject to license terms specified in the COPYING file 00009 * distributed with the Net-SNMP package. 00010 */ 00011 00012 #ifndef NET_SNMP_CONFIG_H 00013 #define NET_SNMP_CONFIG_H 00014 00015 /* config.h: a general config file */ 00016 00017 /* Default (SNMP) version number for the tools to use */ 00018 #define DEFAULT_SNMP_VERSION 3 00019 00020 /* don't change these values! */ 00021 #define SNMPV1 0xAAAA /* readable by anyone */ 00022 #define SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */ 00023 #define SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */ 00024 00025 /* default list of mibs to load */ 00026 00027 #define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB" 00028 00029 /* default location to look for mibs to load using the above tokens 00030 and/or those in the MIBS envrionment variable*/ 00031 #undef DEFAULT_MIBDIRS 00032 00033 /* default mib files to load, specified by path. */ 00034 #undef DEFAULT_MIBFILES 00035 00036 /* should we compile to use special opaque types: float, double, 00037 counter64, i64, ui64, union? */ 00038 #undef OPAQUE_SPECIAL_TYPES 00039 00040 /* comment the next line if you are compiling with libsnmp.h 00041 and are not using the UC-Davis SNMP library. */ 00042 #define UCD_SNMP_LIBRARY 1 00043 00044 /* define if you want to compile support for both authentication and 00045 privacy support. */ 00046 #undef SCAPI_AUTHPRIV 00047 00048 /* define if you are using the MD5 code ...*/ 00049 #undef USE_INTERNAL_MD5 00050 00051 /* define if you are using the codeS11 library ...*/ 00052 #undef USE_PKCS 00053 00054 /* add in recent CMU library extensions (not complete) */ 00055 #undef CMU_COMPATIBLE 00056 00057 /* add in recent resource lock functions (not complete) */ 00058 #undef _REENTRANT 00059 00060 /* debugging stuff */ 00061 /* if defined, we optimize the code to exclude all debugging calls. */ 00062 #undef SNMP_NO_DEBUGGING 00063 /* ignore the -D flag and always print debugging information */ 00064 #define SNMP_ALWAYS_DEBUG 0 00065 00066 /* reverse encoding BER packets is both faster and more efficient in space. */ 00067 #define USE_REVERSE_ASNENCODING 1 00068 #define DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */ 00069 00070 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving 00071 persisant information to this directory in the form of configuration 00072 lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */ 00073 #define PERSISTENT_DIRECTORY "/var/snmp" 00074 00075 /* PERSISTENT_MASK: the umask permissions to set up persistent files with */ 00076 #define PERSISTENT_MASK 077 00077 00078 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create 00079 directories with. Since the data stored here is probably sensitive, it 00080 probably should be read-only by root/administrator. */ 00081 #define AGENT_DIRECTORY_MODE 0700 00082 00083 /* MAX_PERSISTENT_BACKUPS: 00084 * The maximum number of persistent backups the library will try to 00085 * read from the persistent cache directory. If an application fails to 00086 * close down successfully more than this number of times, data will be lost. 00087 */ 00088 #define MAX_PERSISTENT_BACKUPS 10 00089 00090 @TOP@ 00091 00092 /* define if you are embedding perl in the main agent */ 00093 #undef NETSNMP_EMBEDDED_PERL 00094 00095 /* define the system type include file here */ 00096 #define SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h> 00097 00098 /* define the machine (cpu) type include file here */ 00099 #define MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h> 00100 00101 /* define the UDP buffer defaults undefined means use the OS buffers 00102 * by default */ 00103 #undef DEFAULT_SERVER_SEND_BUF 00104 #undef DEFAULT_SERVER_RECV_BUF 00105 #undef DEFAULT_CLIENT_SEND_BUF 00106 #undef DEFAULT_CLIENT_RECV_BUF 00107 00108 /* SNMPLIBDIR contains important files */ 00109 #undef SNMPLIBPATH 00110 #undef SNMPSHAREPATH 00111 #undef SNMPCONFPATH 00112 #undef SNMPDLMODPATH 00113 00114 /* LOGFILE: If defined it closes stdout/err/in and opens this in out/err's 00115 place. (stdin is closed so that sh scripts won't wait for it) */ 00116 #undef LOGFILE 00117 00118 /* default system contact */ 00119 #undef SYS_CONTACT 00120 00121 /* system location */ 00122 #undef SYS_LOC 00123 00124 /* Use libwrap to handle allow/deny hosts? */ 00125 #undef USE_LIBWRAP 00126 00127 /* Use dmalloc to do malloc debugging? */ 00128 #undef HAVE_DMALLOC_H 00129 00130 /* location of UNIX kernel */ 00131 #define KERNEL_LOC "/vmunix" 00132 00133 /* location of mount table list */ 00134 #define ETC_MNTTAB "/etc/mnttab" 00135 00136 /* location of swap device (ok if not found) */ 00137 #undef DMEM_LOC 00138 00139 /* Command to generate ps output, the final column must be the process 00140 name withOUT arguments */ 00141 #define PSCMD "/bin/ps" 00142 00143 /* Where is the uname command */ 00144 #define UNAMEPROG "/bin/uname" 00145 00146 /* pattern for temporary file names */ 00147 #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX" 00148 00149 /* testing code sections. */ 00150 #undef SNMP_TESTING_CODE 00151 00152 /* If you don't have root access don't exit upon kmem errors */ 00153 #undef NO_ROOT_ACCESS 00154 00155 /* If we don't want to use kmem. */ 00156 #undef NO_KMEM_USAGE 00157 00158 /* If you don't want the agent to report on variables it doesn't have data for */ 00159 #undef NO_DUMMY_VALUES 00160 00161 /* Define if statfs takes 2 args and the second argument has 00162 type struct fs_data. [Ultrix] */ 00163 #undef STAT_STATFS_FS_DATA 00164 00165 /* Define if the TCP timer constants in <netinet/tcp_timer.h> 00166 depend on the integer variable `hz'. [FreeBSD 4.x] */ 00167 #undef TCPTV_NEEDS_HZ 00168 00169 @BOTTOM@ 00170 00171 /* define if you have type int32_t */ 00172 #undef HAVE_INT32_T 00173 00174 /* define if you have type uint32_t */ 00175 #undef HAVE_UINT32_T 00176 00177 /* define if you have type u_int32_t */ 00178 #undef HAVE_U_INT32_T 00179 00180 /* define if you have type int64_t */ 00181 #undef HAVE_INT64_T 00182 00183 /* define if you have type uint64_t */ 00184 #undef HAVE_UINT64_T 00185 00186 /* define if you have type u_int64_t */ 00187 #undef HAVE_U_INT64_T 00188 00189 /* define if you have getdevs() */ 00190 #undef HAVE_GETDEVS 00191 00192 /* define if you have devstat_getdevs() */ 00193 #undef HAVE_DEVSTAT_GETDEVS 00194 00195 /* define if you have <netinet/in_pcb.h> */ 00196 #undef HAVE_NETINET_IN_PCB_H 00197 00198 /* define if you have <sys/disklabel.h> */ 00199 #undef HAVE_SYS_DISKLABEL_H 00200 00201 /* define if you are using linux and /proc/net/dev has the compressed 00202 field, which exists in linux kernels 2.2 and greater. */ 00203 #undef PROC_NET_DEV_HAS_COMPRESSED 00204 00205 /* define rtentry to ortentry on SYSV machines (alphas) */ 00206 #undef RTENTRY 00207 00208 /* Use BSD 4.4 routing table entries? */ 00209 #undef RTENTRY_4_4 00210 00211 /* Does struct sigaction have a sa_sigaction field? */ 00212 #undef STRUCT_SIGACTION_HAS_SA_SIGACTION 00213 00214 /* Does struct tm have a tm_gmtoff field? */ 00215 #undef STRUCT_TM_HAS_TM_GMTOFFF 00216 00217 /* Does struct sockaddr have a sa_len field? */ 00218 #undef STRUCT_SOCKADDR_HAS_SA_LEN 00219 00220 /* Does struct sockaddr have a sa_family2 field? */ 00221 #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2 00222 00223 /* Does struct in6_addr have a s6_un.sa6_ladd field? */ 00224 #undef STRUCT_IN6_ADDR_HAS_S6_UN_SA6_LADDR 00225 00226 /* rtentry structure tests */ 00227 #undef RTENTRY_RT_NEXT 00228 #undef STRUCT_RTENTRY_HAS_RT_DST 00229 #undef STRUCT_RTENTRY_HAS_RT_UNIT 00230 #undef STRUCT_RTENTRY_HAS_RT_USE 00231 #undef STRUCT_RTENTRY_HAS_RT_REFCNT 00232 #undef STRUCT_RTENTRY_HAS_RT_HASH 00233 00234 /* ifnet structure tests */ 00235 #undef STRUCT_IFNET_HAS_IF_BAUDRATE 00236 #undef STRUCT_IFNET_HAS_IF_BAUDRATE_IFS_VALUE 00237 #undef STRUCT_IFNET_HAS_IF_SPEED 00238 #undef STRUCT_IFNET_HAS_IF_TYPE 00239 #undef STRUCT_IFNET_HAS_IF_IMCASTS 00240 #undef STRUCT_IFNET_HAS_IF_IQDROPS 00241 #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC 00242 #undef STRUCT_IFNET_HAS_IF_NOPROTO 00243 #undef STRUCT_IFNET_HAS_IF_OMCASTS 00244 #undef STRUCT_IFNET_HAS_IF_XNAME 00245 #undef STRUCT_IFNET_HAS_IF_OBYTES 00246 #undef STRUCT_IFNET_HAS_IF_IBYTES 00247 #undef STRUCT_IFNET_HAS_IF_ADDRLIST 00248 00249 /* tcpstat.tcps_rcvmemdrop */ 00250 #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP 00251 00252 /* udpstat.udps_discard */ 00253 #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD 00254 00255 /* udpstat.udps_discard */ 00256 #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORT 00257 00258 /* udpstat.udps_discard */ 00259 #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORTBCAST 00260 00261 /* udpstat.udps_discard */ 00262 #undef STRUCT_UDPSTAT_HAS_UDPS_FULLSOCK 00263 00264 /* arphd.at_next */ 00265 #undef STRUCT_ARPHD_HAS_AT_NEXT 00266 00267 /* ifaddr.ifa_next */ 00268 #undef STRUCT_IFADDR_HAS_IFA_NEXT 00269 00270 /* ifnet.if_mtu */ 00271 #undef STRUCT_IFNET_HAS_IF_MTU 00272 00273 /* swdevt.sw_nblksenabled */ 00274 #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED 00275 00276 /* nlist.n_value */ 00277 #undef STRUCT_NLIST_HAS_N_VALUE 00278 00279 /* ipstat structure tests */ 00280 #undef STRUCT_IPSTAT_HAS_IPS_CANTFORWARD 00281 #undef STRUCT_IPSTAT_HAS_IPS_CANTFRAG 00282 #undef STRUCT_IPSTAT_HAS_IPS_DELIVERED 00283 #undef STRUCT_IPSTAT_HAS_IPS_FRAGDROPPED 00284 #undef STRUCT_IPSTAT_HAS_IPS_FRAGTIMEOUT 00285 #undef STRUCT_IPSTAT_HAS_IPS_LOCALOUT 00286 #undef STRUCT_IPSTAT_HAS_IPS_NOPROTO 00287 #undef STRUCT_IPSTAT_HAS_IPS_NOROUTE 00288 #undef STRUCT_IPSTAT_HAS_IPS_ODROPPED 00289 #undef STRUCT_IPSTAT_HAS_IPS_OFRAGMENTS 00290 #undef STRUCT_IPSTAT_HAS_IPS_REASSEMBLED 00291 00292 /* vfsstat.f_frsize */ 00293 #undef STRUCT_STATVFS_HAS_F_FRSIZE 00294 00295 /* vfsstat.f_files */ 00296 #undef STRUCT_STATVFS_HAS_F_FILES 00297 00298 /* statfs inode structure tests*/ 00299 #undef STRUCT_STATFS_HAS_F_FILES 00300 #undef STRUCT_STATFS_HAS_F_FFREE 00301 #undef STRUCT_STATFS_HAS_F_FAVAIL 00302 00303 /* des_ks_struct.weak_key */ 00304 #undef STRUCT_DES_KS_STRUCT_HAS_WEAK_KEY 00305 00306 /* ifnet needs to have _KERNEL defined */ 00307 #undef IFNET_NEEDS_KERNEL 00308 00309 /* sysctl works to get boottime, etc... */ 00310 #undef CAN_USE_SYSCTL 00311 00312 /* type check for in_addr_t */ 00313 #undef in_addr_t 00314 00315 /* define if SIOCGIFADDR exists in sys/ioctl.h */ 00316 #undef SYS_IOCTL_H_HAS_SIOCGIFADDR 00317 00318 /* define if your compiler (processor) defines __FUNCTION__ for you */ 00319 #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 00320 00321 /* Mib-2 tree Info */ 00322 /* These are the system information variables. */ 00323 00324 #define VERS_DESC "unknown" /* overridden at run time */ 00325 #define SYS_NAME "unknown" /* overridden at run time */ 00326 00327 /* comment out the second define to turn off functionality for any of 00328 these: (See README for details) */ 00329 00330 /* proc PROCESSNAME [MAX] [MIN] */ 00331 #define PROCMIBNUM 2 00332 00333 /* exec/shell NAME COMMAND */ 00334 #define SHELLMIBNUM 8 00335 00336 /* swap MIN */ 00337 #define MEMMIBNUM 4 00338 00339 /* disk DISK MINSIZE */ 00340 #define DISKMIBNUM 9 00341 00342 /* load 1 5 15 */ 00343 #define LOADAVEMIBNUM 10 00344 00345 /* which version are you using? This mibloc will tell you */ 00346 #define VERSIONMIBNUM 100 00347 00348 /* Reports errors the agent runs into */ 00349 /* (typically its "can't fork, no mem" problems) */ 00350 #define ERRORMIBNUM 101 00351 00352 /* The sub id of EXTENSIBLEMIB returned to queries of 00353 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */ 00354 #define AGENTID 250 00355 00356 /* This ID is returned after the AGENTID above. IE, the resulting 00357 value returned by a query to sysObjectID is 00358 EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */ 00359 00360 #define HPUX9ID 1 00361 #define SUNOS4ID 2 00362 #define SOLARISID 3 00363 #define OSFID 4 00364 #define ULTRIXID 5 00365 #define HPUX10ID 6 00366 #define NETBSD1ID 7 00367 #define FREEBSDID 8 00368 #define IRIXID 9 00369 #define LINUXID 10 00370 #define BSDIID 11 00371 #define OPENBSDID 12 00372 #define WIN32ID 13 00373 #define HPUX11ID 14 00374 #define AIXID 15 00375 #define MACOSXID 16 00376 #define UNKNOWNID 255 00377 00378 #ifdef hpux9 00379 #define OSTYPE HPUX9ID 00380 #endif 00381 #ifdef hpux10 00382 #define OSTYPE HPUX10ID 00383 #endif 00384 #ifdef hpux11 00385 #define OSTYPE HPUX11ID 00386 #endif 00387 #ifdef sunos4 00388 #define OSTYPE SUNOS4ID 00389 #endif 00390 #ifdef solaris2 00391 #define OSTYPE SOLARISID 00392 #endif 00393 #if defined(osf3) || defined(osf4) || defined(osf5) 00394 #define OSTYPE OSFID 00395 #endif 00396 #ifdef ultrix4 00397 #define OSTYPE ULTRIXID 00398 #endif 00399 #if defined(netbsd1) || defined(netbsd2) 00400 #define OSTYPE NETBSD1ID 00401 #endif 00402 #if defined(__FreeBSD__) 00403 #define OSTYPE FREEBSDID 00404 #endif 00405 #if defined(irix6) || defined(irix5) 00406 #define OSTYPE IRIXID 00407 #endif 00408 #ifdef linux 00409 #define OSTYPE LINUXID 00410 #endif 00411 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4) 00412 #define OSTYPE BSDIID 00413 #endif 00414 #if defined(openbsd2) || defined(openbsd3) 00415 #define OSTYPE OPENBSDID 00416 #endif 00417 #ifdef WIN32 00418 #define OSTYPE WIN32ID 00419 #endif 00420 #if defined(aix3) || defined(aix4) || defined(aix5) 00421 #define OSTYPE AIXID 00422 #endif 00423 #ifdef darwin8 00424 #define OSTYPE MACOSXID 00425 #endif 00426 /* unknown */ 00427 #ifndef OSTYPE 00428 #define OSTYPE UNKNOWNID 00429 #endif 00430 00431 /* The enterprise number has been assigned by the IANA group. */ 00432 /* Optionally, this may point to the location in the tree your */ 00433 /* company/organization has been allocated. */ 00434 /* The assigned enterprise number for the NET_SNMP MIB modules. */ 00435 #define ENTERPRISE_OID 8072 00436 #define ENTERPRISE_MIB 1,3,6,1,4,1,8072 00437 #define ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072 00438 #define ENTERPRISE_DOT_MIB_LENGTH 7 00439 00440 /* The assigned enterprise number for sysObjectID. */ 00441 #define SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,OSTYPE 00442 #define SYSTEM_DOT_MIB 1.3.6.1.4.1.8072.3.2.OSTYPE 00443 #define SYSTEM_DOT_MIB_LENGTH 10 00444 00445 /* The assigned enterprise number for notifications. */ 00446 #define NOTIFICATION_MIB 1,3,6,1,4,1,8072,4 00447 #define NOTIFICATION_DOT_MIB 1.3.6.1.4.1.8072.4 00448 #define NOTIFICATION_DOT_MIB_LENGTH 8 00449 00450 /* this is the location of the ucdavis mib tree. It shouldn't be 00451 changed, as the places it is used are expected to be constant 00452 values or are directly tied to the UCD-SNMP-MIB. */ 00453 #define UCDAVIS_OID 2021 00454 #define UCDAVIS_MIB 1,3,6,1,4,1,2021 00455 #define UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021 00456 #define UCDAVIS_DOT_MIB_LENGTH 7 00457 00458 /* this is the location of the net-snmp mib tree. It shouldn't be 00459 changed, as the places it is used are expected to be constant 00460 values or are directly tied to the UCD-SNMP-MIB. */ 00461 #define NETSNMP_OID 8072 00462 #define NETSNMP_MIB 1,3,6,1,4,1,8072 00463 #define NETSNMP_DOT_MIB 1.3.6.1.4.1.8072 00464 #define NETSNMP_DOT_MIB_LENGTH 7 00465 00466 /* how long to wait (seconds) for error querys before reseting the error trap.*/ 00467 #define ERRORTIMELENGTH 600 00468 00469 /* Exec command to fix PROC problems */ 00470 /* %s will be replaced by the process name in error */ 00471 00472 /* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 00473 00474 /* Exec command to fix EXEC problems */ 00475 /* %s will be replaced by the exec/script name in error */ 00476 00477 /* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 00478 00479 /* Should exec output Cashing be used (speeds up things greatly), and 00480 if so, After how many seconds should the cache re-newed? Note: 00481 Don't define CASHETIME to disable cashing completely */ 00482 00483 #define EXCACHETIME 30 00484 #define CACHEFILE ".snmp-exec-cache" 00485 #define MAXCACHESIZE (200*80) /* roughly 200 lines max */ 00486 00487 /* misc defaults */ 00488 00489 /* default of 100 meg minimum if the minimum size is not specified in 00490 the config file */ 00491 #define DEFDISKMINIMUMSPACE 100000 00492 00493 #define DEFMAXLOADAVE 12.0 /* default maximum load average before error */ 00494 00495 /* Because of sleep(1)s, this will also be time to wait (in seconds) for exec 00496 to finish */ 00497 #define MAXREADCOUNT 100 /* max times to loop reading output from execs. */ 00498 00499 /* The original CMU code had this hardcoded as = 1 */ 00500 #define SNMPBLOCK 1 /* Set if snmpgets should block and never timeout */ 00501 00502 /* How long to wait before restarting the agent after a snmpset to 00503 EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT. This is 00504 necessary to finish the snmpset reply before restarting. */ 00505 #define RESTARTSLEEP 5 00506 00507 /* Number of community strings to store */ 00508 #define NUM_COMMUNITIES 5 00509 00510 /* UNdefine to allow specifying zero-length community string */ 00511 /* #define NO_ZEROLENGTH_COMMUNITY 1 */ 00512 00513 /* #define EXIT_ON_BAD_KLREAD */ 00514 /* define to exit the agent on a bad kernel read */ 00515 00516 #define LASTFIELD -1 /* internal define */ 00517 00518 /* configure options specified */ 00519 #define CONFIGURE_OPTIONS "" 00520 00521 /* got socklen_t? */ 00522 #undef HAVE_SOCKLEN_T 00523 00524 /* got in_addr_t? */ 00525 #undef HAVE_IN_ADDR_T 00526 00527 /* got ssize_t? */ 00528 #undef HAVE_SSIZE_T 00529 00530 #ifndef HAVE_STRCHR 00531 #ifdef HAVE_INDEX 00532 # define strchr index 00533 # define strrchr rindex 00534 #endif 00535 #endif 00536 00537 #ifndef HAVE_INDEX 00538 #ifdef HAVE_STRCHR 00539 #ifdef mingw32 00540 # define index(a,b) strchr(a,b) 00541 # define rindex(a,b) strrchr(a,b) 00542 #else 00543 # define index strchr 00544 # define rindex strrchr 00545 #endif 00546 #endif 00547 #endif 00548 00549 #ifndef HAVE_MEMCPY 00550 #ifdef HAVE_BCOPY 00551 # define memcpy(d, s, n) bcopy ((s), (d), (n)) 00552 # define memmove(d, s, n) bcopy ((s), (d), (n)) 00553 # define memcmp bcmp 00554 #endif 00555 #endif 00556 00557 #ifndef HAVE_MEMMOVE 00558 #ifdef HAVE_MEMCPY 00559 # define memmove memcpy 00560 #endif 00561 #endif 00562 00563 #ifndef HAVE_BCOPY 00564 #ifdef HAVE_MEMCPY 00565 # define bcopy(s, d, n) memcpy ((d), (s), (n)) 00566 # define bzero(p,n) memset((p),(0),(n)) 00567 # define bcmp memcmp 00568 #endif 00569 #endif 00570 00571 /* If you have openssl 0.9.7 or above, you likely have AES support. */ 00572 #undef USE_OPENSSL 00573 #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT) 00574 #define HAVE_AES 1 00575 #endif 00576 00577 /* define random functions */ 00578 00579 #ifndef HAVE_RANDOM 00580 #ifdef HAVE_LRAND48 00581 #define random lrand48 00582 #define srandom(s) srand48(s) 00583 #else 00584 #ifdef HAVE_RAND 00585 #define random rand 00586 #define srandom(s) srand(s) 00587 #endif 00588 #endif 00589 #endif 00590 00591 /* define signal if DNE */ 00592 00593 #ifndef HAVE_SIGNAL 00594 #ifdef HAVE_SIGSET 00595 #define signal(a,b) sigset(a,b) 00596 #endif 00597 #endif 00598 00599 /* define if you have librpm and libdb */ 00600 #undef HAVE_LIBDB 00601 #undef HAVE_LIBRPM 00602 00603 /* define if you have pkginfo */ 00604 #undef HAVE_PKGINFO 00605 00606 /* define if you have gethostbyname */ 00607 #undef HAVE_GETHOSTBYNAME 00608 00609 /* define if you have getservbyname */ 00610 #undef HAVE_GETSERVBYNAME 00611 00612 /* printing system */ 00613 #undef HAVE_LPSTAT 00614 #undef LPSTAT_PATH 00615 #undef HAVE_PRINTCAP 00616 00617 /* Pluggable transports. */ 00618 00619 /* This is defined if support for the UDP/IP transport domain is 00620 available. */ 00621 #undef SNMP_TRANSPORT_UDP_DOMAIN 00622 00623 /* This is defined if support for the "callback" transport domain is 00624 available. */ 00625 #undef SNMP_TRANSPORT_CALLBACK_DOMAIN 00626 00627 /* This is defined if support for the TCP/IP transport domain is 00628 available. */ 00629 #undef SNMP_TRANSPORT_TCP_DOMAIN 00630 00631 /* This is defined if support for the Unix transport domain 00632 (a.k.a. "local IPC") is available. */ 00633 #undef SNMP_TRANSPORT_UNIX_DOMAIN 00634 00635 /* This is defined if support for the AAL5 PVC transport domain is 00636 available. */ 00637 #undef SNMP_TRANSPORT_AAL5PVC_DOMAIN 00638 00639 /* This is defined if support for the IPX transport domain is 00640 available. */ 00641 #undef SNMP_TRANSPORT_IPX_DOMAIN 00642 00643 /* This is defined if support for the UDP/IPv6 transport domain is 00644 available. */ 00645 #undef SNMP_TRANSPORT_UDPIPV6_DOMAIN 00646 00647 /* This is defined if support for the TCP/IPv6 transport domain is 00648 available. */ 00649 #undef SNMP_TRANSPORT_TCPIPV6_DOMAIN 00650 00651 /* This is defined if support for the UDP/IP transport domain is 00652 available. */ 00653 #undef SNMP_TRANSPORT_TLS_DOMAIN 00654 00655 /* This is defined if support for stdin/out transport domain is available. */ 00656 #undef SNMP_TRANSPORT_STD_DOMAIN 00657 00658 /* define this if the USM security module is available */ 00659 #undef SNMP_SECMOD_USM 00660 00661 /* define this if the KSM (kerberos based snmp) security module is available */ 00662 #undef SNMP_SECMOD_KSM 00663 00664 /* define this if the local security module is available */ 00665 #undef SNMP_SECMOD_LOCALSM 00666 00667 /* define this if we're using the new MIT crypto API */ 00668 #undef MIT_NEW_CRYPTO 00669 00670 /* define if you want to build with reentrant/threaded code (incomplete)*/ 00671 #undef NS_REENTRANT 00672 00673 /* define if you want to build MFD module rewrites*/ 00674 #undef NETSNMP_ENABLE_MFD_REWRITES 00675 00676 /* on aix, if you have perfstat */ 00677 #undef HAVE_PERFSTAT 00678 00679 /* Not-to-be-compiled macros for use by configure only */ 00680 #define config_require(x) 00681 #define config_exclude(x) 00682 #define config_arch_require(x,y) 00683 #define config_parse_dot_conf(w,x,y,z) 00684 #define config_add_mib(x) 00685 #define config_belongs_in(x) 00686 00687 #if defined (WIN32) || defined (mingw32) || defined (cygwin) 00688 #define ENV_SEPARATOR ";" 00689 #define ENV_SEPARATOR_CHAR ';' 00690 #else 00691 #define ENV_SEPARATOR ":" 00692 #define ENV_SEPARATOR_CHAR ':' 00693 #endif 00694 00695 /* 00696 * this must be before the system/machine includes, to allow them to 00697 * override and turn off inlining. To do so, they should do the 00698 * following: 00699 * 00700 * #undef NETSNMP_ENABLE_INLINE 00701 * #define NETSNMP_ENABLE_INLINE 0 00702 * 00703 * A user having problems with their compiler can also turn off 00704 * the use of inline by defining NETSNMP_NO_INLINE via their cflags: 00705 * 00706 * -DNETSNMP_NO_INLINE 00707 * 00708 * Header and source files should only test against NETSNMP_USE_INLINE: 00709 * 00710 * #ifdef NETSNMP_USE_INLINE 00711 * NETSNMP_INLINE function(int parm) { return parm -1; } 00712 * #endif 00713 * 00714 * Functions which should be static, regardless of whether or not inline 00715 * is available or enabled should use the NETSNMP_STATIC_INLINE macro, 00716 * like so: 00717 * 00718 * NETSNMP_STATIC_INLINE function(int parm) { return parm -1; } 00719 * 00720 * NOT like this: 00721 * 00722 * static NETSNMP_INLINE function(int parm) { return parm -1; } 00723 * 00724 */ 00725 #undef NETSNMP_BROKEN_INLINE 00726 #ifdef NETSNMP_BROKEN_INLINE 00727 # define NETSNMP_ENABLE_INLINE 0 00728 #else 00729 # define NETSNMP_ENABLE_INLINE 1 00730 #endif 00731 00732 #include SYSTEM_INCLUDE_FILE 00733 #include MACHINE_INCLUDE_FILE 00734 00735 #if NETSNMP_ENABLE_INLINE && !defined(NETSNMP_NO_INLINE) 00736 # define NETSNMP_USE_INLINE 1 00737 # ifndef NETSNMP_INLINE 00738 # define NETSNMP_INLINE inline 00739 # endif 00740 # ifndef NETSNMP_STATIC_INLINE 00741 # define NETSNMP_STATIC_INLINE static inline 00742 # endif 00743 #else 00744 # define NETSNMP_INLINE 00745 # define NETSNMP_STATIC_INLINE static 00746 #endif 00747 00748 #ifndef NETSNMP_IMPORT 00749 # define NETSNMP_IMPORT extern 00750 #endif 00751 00752 #if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NO_KMEM_USAGE) 00753 #define CAN_USE_NLIST 00754 #endif 00755 00756 #if HAVE_DMALLOC_H 00757 #define DMALLOC_FUNC_CHECK 00758 #endif 00759 00760 #undef INET6 00761 #undef LOCAL_SMUX 00762 00763 /* define if agentx transport is to use domain sockets only */ 00764 #undef AGENTX_DOM_SOCK_ONLY 00765 00766 /* define if you do not want snmptrapd to register as an AgentX subagent */ 00767 #undef SNMPTRAPD_DISABLE_AGENTX 00768 00769 #undef HEIMDAL 00770 00771 #endif /* NET_SNMP_CONFIG_H */
1.3.9.1
Last modified: Thursday, 01-Mar-2007 16:20:04 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.