/* config.h.in. Generated automatically from configure.in by autoheader. */ /* config.h: a general config file */ /* Define IN_UCD_SNMP_SOURCE if compiling inside the ucd-snmp source tree */ #define IN_UCD_SNMP_SOURCE 1 /* Our assigned enterprise number */ #define ENTERPRISE_NUMBER 2021 /* don't change these values! */ #define SNMPV1 0xAAAA /* readable by anyone */ #define SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */ #define SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */ /* default list of mibs to load */ #define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB" /* default location to look for mibs to load using the above tokens and/or those in the MIBS envrionment variable*/ #undef DEFAULT_MIBDIRS /* default mib files to load, specified by path. */ #undef DEFAULT_MIBFILES /* should we compile to use special opaque types: float, double, counter64, i64, ui64, union? */ #undef OPAQUE_SPECIAL_TYPES /* comment the next line if you are compiling with libsnmp.h and are not using the UC-Davis SNMP library. */ #define UCD_SNMP_LIBRARY 1 /* define if you want to compile support for both authentication and privacy support. */ #undef SCAPI_AUTHPRIV /* define if you are using the MD5 code ...*/ #undef USE_INTERNAL_MD5 /* ... or define this if you're using openssl support */ #undef USE_OPENSSL /* add in recent CMU library extensions (not complete) */ #undef CMU_COMPATIBLE /* add in recent resource lock functions (not complete) */ #undef _REENTRANT /* debugging stuff */ #undef SNMP_NO_DEBUGGING /* if defined, we optimize the code to exclude all debugging calls. */ #define SNMP_ALWAYS_DEBUG 0 /* Always print debugging information and ignore the -D flag passed to the cmds */ /* reverse encoding BER packets is both faster and more efficient in space. */ #define USE_REVERSE_ASNENCODING 1 #define DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */ /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving persisant information to this directory in the form of configuration lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */ #define PERSISTENT_DIRECTORY "/var/snmp" /* PERSISTENT_MASK: the umask permissions to set up the persistent files with */ #define PERSISTENT_MASK 077 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create directories with. Since the data stored here is probably sensitive, it probably should be read-only by root/administrator. */ #define AGENT_DIRECTORY_MODE 0700 /* MAX_PERSISTENT_BACKUPS: * The maximum number of persistent backups the library will try to * read from the persistent cache directory. If an application fails to * close down successfully more than this number of times, data will be lost. */ #define MAX_PERSISTENT_BACKUPS 10 /* Define if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE #undef _ALL_SOURCE #endif /* Define if using alloca.c. */ #undef C_ALLOCA /* Define to empty if the keyword does not work. */ #undef const /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. This function is required for alloca.c support on those systems. */ #undef CRAY_STACKSEG_END /* Define if you have alloca, as a function or macro. */ #undef HAVE_ALLOCA /* Define if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define if you have the getmntent function. */ #undef HAVE_GETMNTENT /* Define if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to `long' if doesn't define. */ #undef off_t /* Define to `int' if doesn't define. */ #undef pid_t /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN /* define the system type include file here */ #define SYSTEM_INCLUDE_FILE "s/generic.h" /* define the machine (cpu) type include file here */ #define MACHINE_INCLUDE_FILE "m/generic.h" #undef SNMPLIBPATH #undef SNMPSHAREPATH #undef SNMPCONFPATH #undef SNMPDLMODPATH /* LOGFILE: If defined it closes stdout/err/in and opens this in out/err's place. (stdin is closed so that sh scripts won't wait for it) */ #undef LOGFILE /* default system contact */ #undef SYS_CONTACT /* system location */ #undef SYS_LOC /* Use libwrap to handle allow/deny hosts? */ #undef USE_LIBWRAP /* Use dmalloc to do malloc debugging? */ #undef HAVE_DMALLOC_H /* location of UNIX kernel */ #define KERNEL_LOC "/vmunix" /* location of mount table list */ #define ETC_MNTTAB "/etc/mnttab" /* location of swap device (ok if not found) */ #undef DMEM_LOC #define PSCMD "/bin/ps" /* Where is the uname command */ #define UNAMEPROG "/bin/uname" /* testing code sections. */ #undef SNMP_TESTING_CODE /* If you don't have root access don't exit upon kmem errors */ #undef NO_ROOT_ACCESS /* If you don't want the agent to report on variables it doesn't have data for */ #undef NO_DUMMY_VALUES /* Define if statfs takes 2 args and the second argument has type struct fs_data. [Ultrix] */ #undef STAT_STATFS_FS_DATA /* Define if the TCP timer constants in depend on the integer variable `hz'. [FreeBSD 4.x] */ #undef TCPTV_NEEDS_HZ /* Define if you have the bcopy function. */ #undef HAVE_BCOPY /* Define if you have the cgetnext function. */ #undef HAVE_CGETNEXT /* Define if you have the dlopen function. */ #undef HAVE_DLOPEN /* Define if you have the execv function. */ #undef HAVE_EXECV /* Define if you have the fork function. */ #undef HAVE_FORK /* Define if you have the getdtablesize function. */ #undef HAVE_GETDTABLESIZE /* Define if you have the getfsstat function. */ #undef HAVE_GETFSSTAT /* Define if you have the getgrnam function. */ #undef HAVE_GETGRNAM /* Define if you have the gethostname function. */ #undef HAVE_GETHOSTNAME /* Define if you have the getloadavg function. */ #undef HAVE_GETLOADAVG /* Define if you have the getpagesize function. */ #undef HAVE_GETPAGESIZE /* Define if you have the getpid function. */ #undef HAVE_GETPID /* Define if you have the getpwnam function. */ #undef HAVE_GETPWNAM /* Define if you have the gettimeofday function. */ #undef HAVE_GETTIMEOFDAY /* Define if you have the if_freenameindex function. */ #undef HAVE_IF_FREENAMEINDEX /* Define if you have the if_nameindex function. */ #undef HAVE_IF_NAMEINDEX /* Define if you have the index function. */ #undef HAVE_INDEX /* Define if you have the knlist function. */ #undef HAVE_KNLIST /* Define if you have the kvm_getprocs function. */ #undef HAVE_KVM_GETPROCS /* Define if you have the kvm_openfiles function. */ #undef HAVE_KVM_OPENFILES /* Define if you have the lrand48 function. */ #undef HAVE_LRAND48 /* Define if you have the memcpy function. */ #undef HAVE_MEMCPY /* Define if you have the memmove function. */ #undef HAVE_MEMMOVE /* Define if you have the mkstemp function. */ #undef HAVE_MKSTEMP /* Define if you have the nlist function. */ #undef HAVE_NLIST /* Define if you have the rand function. */ #undef HAVE_RAND /* Define if you have the random function. */ #undef HAVE_RANDOM /* Define if you have the regcomp function. */ #undef HAVE_REGCOMP /* Define if you have the rpmGetPath function. */ #undef HAVE_RPMGETPATH /* Define if you have the select function. */ #undef HAVE_SELECT /* Define if you have the setenv function. */ #undef HAVE_SETENV /* Define if you have the setgid function. */ #undef HAVE_SETGID /* Define if you have the setgroups function. */ #undef HAVE_SETGROUPS /* Define if you have the setlocale function. */ #undef HAVE_SETLOCALE /* Define if you have the setmntent function. */ #undef HAVE_SETMNTENT /* Define if you have the setuid function. */ #undef HAVE_SETUID /* Define if you have the sigaction function. */ #undef HAVE_SIGACTION /* Define if you have the sigalrm function. */ #undef HAVE_SIGALRM /* Define if you have the sigblock function. */ #undef HAVE_SIGBLOCK /* Define if you have the sighold function. */ #undef HAVE_SIGHOLD /* Define if you have the signal function. */ #undef HAVE_SIGNAL /* Define if you have the sigset function. */ #undef HAVE_SIGSET /* Define if you have the snprintf function. */ #undef HAVE_SNPRINTF /* Define if you have the socket function. */ #undef HAVE_SOCKET /* Define if you have the statfs function. */ #undef HAVE_STATFS /* Define if you have the statvfs function. */ #undef HAVE_STATVFS /* Define if you have the strcasestr function. */ #undef HAVE_STRCASESTR /* Define if you have the strchr function. */ #undef HAVE_STRCHR /* Define if you have the strdup function. */ #undef HAVE_STRDUP /* Define if you have the strerror function. */ #undef HAVE_STRERROR /* Define if you have the strncasecmp function. */ #undef HAVE_STRNCASECMP /* Define if you have the strtol function. */ #undef HAVE_STRTOL /* Define if you have the strtoul function. */ #undef HAVE_STRTOUL /* Define if you have the system function. */ #undef HAVE_SYSTEM /* Define if you have the tcgetattr function. */ #undef HAVE_TCGETATTR /* Define if you have the uname function. */ #undef HAVE_UNAME /* Define if you have the usleep function. */ #undef HAVE_USLEEP /* Define if you have the vsnprintf function. */ #undef HAVE_VSNPRINTF /* Define if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define if you have the header file. */ #undef HAVE_ASM_PAGE_H /* Define if you have the header file. */ #undef HAVE_DIRENT_H /* Define if you have the header file. */ #undef HAVE_DLFCN_H /* Define if you have the header file. */ #undef HAVE_ERR_H /* Define if you have the header file. */ #undef HAVE_FCNTL_H /* Define if you have the header file. */ #undef HAVE_FSTAB_H /* Define if you have the header file. */ #undef HAVE_GETOPT_H /* Define if you have the header file. */ #undef HAVE_GRP_H /* Define if you have the header file. */ #undef HAVE_INET_MIB2_H /* Define if you have the header file. */ #undef HAVE_IO_H /* Define if you have the header file. */ #undef HAVE_IOCTLS_H /* Define if you have the header file. */ #undef HAVE_KSTAT_H /* Define if you have the header file. */ #undef HAVE_KVM_H /* Define if you have the header file. */ #undef HAVE_LIMITS_H /* Define if you have the header file. */ #undef HAVE_LINUX_HDREG_H /* Define if you have the header file. */ #undef HAVE_LOCALE_H /* Define if you have the header file. */ #undef HAVE_MACHINE_PARAM_H /* Define if you have the header file. */ #undef HAVE_MACHINE_PTE_H /* Define if you have the header file. */ #undef HAVE_MACHINE_TYPES_H /* Define if you have the header file. */ #undef HAVE_MALLOC_H /* Define if you have the header file. */ #undef HAVE_MNTENT_H /* Define if you have the header file. */ #undef HAVE_MTAB_H /* Define if you have the header file. */ #undef HAVE_NDIR_H /* Define if you have the header file. */ #undef HAVE_NET_IF_H /* Define if you have the header file. */ #undef HAVE_NET_IF_DL_H /* Define if you have the header file. */ #undef HAVE_NET_IF_MIB_H /* Define if you have the header file. */ #undef HAVE_NET_IF_TYPES_H /* Define if you have the header file. */ #undef HAVE_NET_IF_VAR_H /* Define if you have the header file. */ #undef HAVE_NET_ROUTE_H /* Define if you have the header file. */ #undef HAVE_NETDB_H /* Define if you have the header file. */ #undef HAVE_NETINET_ICMP_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET_IF_ETHER_H /* Define if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define if you have the header file. */ #undef HAVE_NETINET_IN_SYSTM_H /* Define if you have the header file. */ #undef HAVE_NETINET_IN_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET_IP_H /* Define if you have the header file. */ #undef HAVE_NETINET_IP6_H /* Define if you have the header file. */ #undef HAVE_NETINET_IP_ICMP_H /* Define if you have the header file. */ #undef HAVE_NETINET_IP_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET_TCP_H /* Define if you have the header file. */ #undef HAVE_NETINET_TCP_FSM_H /* Define if you have the header file. */ #undef HAVE_NETINET_TCP_TIMER_H /* Define if you have the header file. */ #undef HAVE_NETINET_TCP_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET_TCPIP_H /* Define if you have the header file. */ #undef HAVE_NETINET_UDP_H /* Define if you have the header file. */ #undef HAVE_NETINET_UDP_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET6_IN6_PCB_H /* Define if you have the header file. */ #undef HAVE_NETINET6_IN6_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET6_IP6_VAR_H /* Define if you have the header file. */ #undef HAVE_NETINET6_ND6_H /* Define if you have the header file. */ #undef HAVE_NETINET6_TCP6_H /* Define if you have the header file. */ #undef HAVE_NETINET6_TCP6_FSM_H /* Define if you have the header file. */ #undef HAVE_NETINET6_TCP6_TIMER_H /* Define if you have the header file. */ #undef HAVE_NETINET6_TCP6_VAR_H /* Define if you have the header file. */ #undef HAVE_NLIST_H /* Define if you have the header file. */ #undef HAVE_OPENSSL_EVP_H /* Define if you have the header file. */ #undef HAVE_OPENSSL_HMAC_H /* Define if you have the header file. */ #undef HAVE_OSRELDATE_H /* Define if you have the header file. */ #undef HAVE_PKGINFO_H /* Define if you have the header file. */ #undef HAVE_PKGLOCS_H /* Define if you have the header file. */ #undef HAVE_PTHREAD_H /* Define if you have the header file. */ #undef HAVE_PWD_H /* Define if you have the header file. */ #undef HAVE_REGEX_H /* Define if you have the header file. */ #undef HAVE_SGTTY_H /* Define if you have the header file. */ #undef HAVE_STDARG_H /* Define if you have the header file. */ #undef HAVE_STDLIB_H /* Define if you have the header file. */ #undef HAVE_STRING_H /* Define if you have the header file. */ #undef HAVE_SYS_CDEFS_H /* Define if you have the header file. */ #undef HAVE_SYS_CONF_H /* Define if you have the header file. */ #undef HAVE_SYS_DIR_H /* Define if you have the header file. */ #undef HAVE_SYS_DISKIO_H /* Define if you have the header file. */ #undef HAVE_SYS_DISKLABEL_H /* Define if you have the header file. */ #undef HAVE_SYS_DKIO_H /* Define if you have the header file. */ #undef HAVE_SYS_DMAP_H /* Define if you have the header file. */ #undef HAVE_SYS_FILE_H /* Define if you have the header file. */ #undef HAVE_SYS_FILIO_H /* Define if you have the header file. */ #undef HAVE_SYS_FIXPOINT_H /* Define if you have the header file. */ #undef HAVE_SYS_FS_H /* Define if you have the header file. */ #undef HAVE_SYS_HASHING_H /* Define if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define if you have the header file. */ #undef HAVE_SYS_LOADAVG_H /* Define if you have the header file. */ #undef HAVE_SYS_MBUF_H /* Define if you have the header file. */ #undef HAVE_SYS_MNTENT_H /* Define if you have the header file. */ #undef HAVE_SYS_MNTTAB_H /* Define if you have the header file. */ #undef HAVE_SYS_MOUNT_H /* Define if you have the header file. */ #undef HAVE_SYS_NDIR_H /* Define if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define if you have the header file. */ #undef HAVE_SYS_POOL_H /* Define if you have the header file. */ #undef HAVE_SYS_PROC_H /* Define if you have the header file. */ #undef HAVE_SYS_PROTOSW_H /* Define if you have the header file. */ #undef HAVE_SYS_PSTAT_H /* Define if you have the header file. */ #undef HAVE_SYS_QUEUE_H /* Define if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define if you have the header file. */ #undef HAVE_SYS_SOCKETVAR_H /* Define if you have the header file. */ #undef HAVE_SYS_SOCKIO_H /* Define if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define if you have the header file. */ #undef HAVE_SYS_STATFS_H /* Define if you have the header file. */ #undef HAVE_SYS_STATVFS_H /* Define if you have the header file. */ #undef HAVE_SYS_STREAM_H /* Define if you have the header file. */ #undef HAVE_SYS_SWAP_H /* Define if you have the header file. */ #undef HAVE_SYS_SYSCTL_H /* Define if you have the header file. */ #undef HAVE_SYS_SYSMP_H /* Define if you have the header file. */ #undef HAVE_SYS_TCPIPSTATS_H /* Define if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define if you have the header file. */ #undef HAVE_SYS_UN_H /* Define if you have the header file. */ #undef HAVE_SYS_USER_H /* Define if you have the header file. */ #undef HAVE_SYS_UTSNAME_H /* Define if you have the header file. */ #undef HAVE_SYS_VFS_H /* Define if you have the header file. */ #undef HAVE_SYS_VM_H /* Define if you have the header file. */ #undef HAVE_SYS_VMMAC_H /* Define if you have the header file. */ #undef HAVE_SYS_VMMETER_H /* Define if you have the header file. */ #undef HAVE_SYS_VMPARAM_H /* Define if you have the header file. */ #undef HAVE_SYS_VMSYSTM_H /* Define if you have the header file. */ #undef HAVE_SYS_VNODE_H /* Define if you have the header file. */ #undef HAVE_SYSLOG_H /* Define if you have the header file. */ #undef HAVE_UFS_FFS_FS_H /* Define if you have the header file. */ #undef HAVE_UFS_FS_H /* Define if you have the header file. */ #undef HAVE_UFS_UFS_DINODE_H /* Define if you have the header file. */ #undef HAVE_UFS_UFS_INODE_H /* Define if you have the header file. */ #undef HAVE_UFS_UFS_QUOTA_H /* Define if you have the header file. */ #undef HAVE_UNISTD_H /* Define if you have the header file. */ #undef HAVE_UTMPX_H /* Define if you have the header file. */ #undef HAVE_UTSNAME_H /* Define if you have the header file. */ #undef HAVE_VM_SWAP_PAGER_H /* Define if you have the header file. */ #undef HAVE_VM_VM_H /* Define if you have the header file. */ #undef HAVE_WINSOCK_H /* Define if you have the header file. */ #undef HAVE_XTI_H /* Define if you have the RSAglue library (-lRSAglue). */ #undef HAVE_LIBRSAGLUE /* Define if you have the crypto library (-lcrypto). */ #undef HAVE_LIBCRYPTO /* Define if you have the dl library (-ldl). */ #undef HAVE_LIBDL /* Define if you have the efence library (-lefence). */ #undef HAVE_LIBEFENCE /* Define if you have the elf library (-lelf). */ #undef HAVE_LIBELF /* Define if you have the kstat library (-lkstat). */ #undef HAVE_LIBKSTAT /* Define if you have the kvm library (-lkvm). */ #undef HAVE_LIBKVM /* Define if you have the m library (-lm). */ #undef HAVE_LIBM /* Define if you have the mld library (-lmld). */ #undef HAVE_LIBMLD /* Define if you have the nsl library (-lnsl). */ #undef HAVE_LIBNSL /* Define if you have the popt library (-lpopt). */ #undef HAVE_LIBPOPT /* Define if you have the rsaref library (-lrsaref). */ #undef HAVE_LIBRSAREF /* Define if you have the z library (-lz). */ #undef HAVE_LIBZ /* define if you have */ #undef HAVE_NETINET_IN_PCB_H /* define if you are using linux and /proc/net/dev has the compressed field, which exists in linux kernels 2.2 and greater. */ #undef PROC_NET_DEV_HAS_COMPRESSED /* define rtentry to ortentry on SYSV machines (alphas) */ #undef RTENTRY /* Use BSD 4.4 routing table entries? */ #undef RTENTRY_4_4 /* Does struct sigaction have a sa_sigaction field? */ #undef STRUCT_SIGACTION_HAS_SA_SIGACTION /* Does struct sockaddr have a sa_len field? */ #undef STRUCT_SOCKADDR_HAS_SA_LEN /* Does struct sockaddr have a sa_family2 field? */ #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2 /* rtentry structure tests */ #undef RTENTRY_RT_NEXT #undef STRUCT_RTENTRY_HAS_RT_DST #undef STRUCT_RTENTRY_HAS_RT_UNIT #undef STRUCT_RTENTRY_HAS_RT_USE #undef STRUCT_RTENTRY_HAS_RT_REFCNT #undef STRUCT_RTENTRY_HAS_RT_HASH /* ifnet structure tests */ #undef STRUCT_IFNET_HAS_IF_BAUDRATE #undef STRUCT_IFNET_HAS_IF_BAUDRATE_IFS_VALUE #undef STRUCT_IFNET_HAS_IF_SPEED #undef STRUCT_IFNET_HAS_IF_TYPE #undef STRUCT_IFNET_HAS_IF_IMCASTS #undef STRUCT_IFNET_HAS_IF_IQDROPS #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC #undef STRUCT_IFNET_HAS_IF_NOPROTO #undef STRUCT_IFNET_HAS_IF_OMCASTS #undef STRUCT_IFNET_HAS_IF_XNAME #undef STRUCT_IFNET_HAS_IF_OBYTES #undef STRUCT_IFNET_HAS_IF_IBYTES #undef STRUCT_IFNET_HAS_IF_ADDRLIST /* tcpstat.tcps_rcvmemdrop */ #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP /* udpstat.udps_discard */ #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD /* udpstat.udps_discard */ #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORT /* udpstat.udps_discard */ #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORTBCAST /* udpstat.udps_discard */ #undef STRUCT_UDPSTAT_HAS_UDPS_FULLSOCK /* arphd.at_next */ #undef STRUCT_ARPHD_HAS_AT_NEXT /* ifaddr.ifa_next */ #undef STRUCT_IFADDR_HAS_IFA_NEXT /* ifnet.if_mtu */ #undef STRUCT_IFNET_HAS_IF_MTU /* swdevt.sw_nblksenabled */ #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED /* nlist.n_value */ #undef STRUCT_NLIST_HAS_N_VALUE /* vfsstat.f_frsize */ #undef STRUCT_STATVFS_HAS_F_FRSIZE /* vfsstat.f_files */ #undef STRUCT_STATVFS_HAS_F_FILES /* ifnet needs to have _KERNEL defined */ #undef IFNET_NEEDS_KERNEL /* sysctl works to get boottime, etc... */ #undef CAN_USE_SYSCTL /* type check for in_addr_t */ #undef in_addr_t /* define if SIOCGIFADDR exists in sys/ioctl.h */ #undef SYS_IOCTL_H_HAS_SIOCGIFADDR /* define if your compiler (processor) defines __FUNCTION__ for you */ #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED /* mib pointer to the top of the extensible tree. This has been assigned to UCDavis by the iana group. Optionally, point this to the location in the tree your company/organization has been allocated. */ /* location of the extensible mib tree */ #define EXTENSIBLEMIB 1,3,6,1,4,1,2021 /* location of the extensible mib tree */ #define EXTENSIBLEDOTMIB 1.3.6.1.4.1.2021 /* count the above numbers */ #define EXTENSIBLENUM 7 /* Mib-2 tree Info */ /* These are the system information variables. */ #define VERS_DESC "unknown" /* overridden at run time */ #define SYS_NAME "unknown" /* overridden at run time */ /* comment out the second define to turn off functionality for any of these: (See README for details) */ /* proc PROCESSNAME [MAX] [MIN] */ #define PROCMIBNUM 2 /* exec/shell NAME COMMAND */ #define SHELLMIBNUM 8 /* swap MIN */ #define MEMMIBNUM 4 /* disk DISK MINSIZE */ #define DISKMIBNUM 9 /* load 1 5 15 */ #define LOADAVEMIBNUM 10 /* which version are you using? This mibloc will tell you */ #define VERSIONMIBNUM 100 /* Reports errors the agent runs into */ /* (typically its "can't fork, no mem" problems) */ #define ERRORMIBNUM 101 /* The sub id of EXENSIBLEMIB returned to queries of .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */ #define AGENTID 250 /* This ID is returned after the AGENTID above. IE, the resulting value returned by a query to sysObjectID is EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */ #define HPUX9ID 1 #define SUNOS4ID 2 #define SOLARISID 3 #define OSFID 4 #define ULTRIXID 5 #define HPUX10ID 6 #define NETBSD1ID 7 #define FREEBSDID 8 #define IRIXID 9 #define LINUXID 10 #define BSDIID 11 #define OPENBSDID 12 #define UNKNOWNID 255 #ifdef hpux9 #define OSTYPE HPUX9ID #endif #ifdef hpux10 #define OSTYPE HPUX10ID #endif #ifdef sunos4 #define OSTYPE SUNOS4ID #endif #ifdef solaris2 #define OSTYPE SOLARISID #endif #if defined(osf3) || defined(osf4) #define OSTYPE OSFID #endif #ifdef ultrix4 #define OSTYPE ULTRIXID #endif #ifdef netbsd1 #define OSTYPE NETBSD1ID #endif #ifdef freebsd2 #define OSTYPE FREEBSDID #endif #if defined(irix6) || defined(irix5) #define OSTYPE IRIXID #endif #ifdef linux #define OSTYPE LINUXID #endif #if defined(bsdi2) || defined(bsdi3) #define OSTYPE BSDIID #endif #ifdef openbsd2 #define OSTYPE OPENBSDID #endif /* unknown */ #ifndef OSTYPE #define OSTYPE UNKNOWNID #endif /* how long to wait (seconds) for error querys before reseting the error trap.*/ #define ERRORTIMELENGTH 600 /* Exec command to fix PROC problems */ /* %s will be replaced by the process name in error */ /* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ /* Exec command to fix EXEC problems */ /* %s will be replaced by the exec/script name in error */ /* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ /* Should exec output Cashing be used (speeds up things greatly), and if so, After how many seconds should the cache re-newed? Note: Don't define CASHETIME to disable cashing completely */ #define EXCACHETIME 30 #define CACHEFILE ".snmp-exec-cache" #define MAXCACHESIZE (200*80) /* roughly 200 lines max */ #define MAXDISKS 50 /* can't scan more than this number */ /* misc defaults */ /* default of 100 meg minimum if the minimum size is not specified in the config file */ #define DEFDISKMINIMUMSPACE 100000 #define DEFMAXLOADAVE 12.0 /* default maximum load average before error */ #define MAXREADCOUNT 100 /* max times to loop reading output from execs. Because of sleep(1)s, this will also be time to wait (in seconds) for exec to finish */ #define SNMPBLOCK 1 /* Set to 1 if you want snmpgets to block and never timeout. Original CMU code had this hardcoded into the code as = 1 */ #define RESTARTSLEEP 5 /* How long to wait after a snmpset to EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT before restarting the agent. This is necessary to finish the snmpset reply before restarting. */ /* Number of community strings to store */ #define NUM_COMMUNITIES 5 /* UNdefine to allow specifying zero-length community string */ /* #define NO_ZEROLENGTH_COMMUNITY 1 */ /* #define EXIT_ON_BAD_KLREAD */ /* define to exit the agent on a bad kernel read */ #define LASTFIELD -1 /* internal define */ /* configure options specified */ #define CONFIGURE_OPTIONS "" #ifndef HAVE_STRCHR #ifdef HAVE_INDEX # define strchr index # define strrchr rindex #endif #endif #ifndef HAVE_INDEX #ifdef HAVE_STRCHR # define index strchr # define rindex strrchr #endif #endif #ifndef HAVE_MEMCPY #ifdef HAVE_BCOPY # define memcpy(d, s, n) bcopy ((s), (d), (n)) # define memmove(d, s, n) bcopy ((s), (d), (n)) # define memcmp bcmp #endif #endif #ifndef HAVE_MEMMOVE #ifdef HAVE_MEMCPY # define memmove memcpy #endif #endif #ifndef HAVE_BCOPY #ifdef HAVE_MEMCPY # define bcopy(s, d, n) memcpy ((d), (s), (n)) # define bzero(p,n) memset((p),(0),(n)) # define bcmp memcmp #endif #endif /* define random functions */ #ifndef HAVE_RANDOM #ifdef HAVE_LRAND48 #define random lrand48 #define srandom(s) srand48(s) #else #ifdef HAVE_RAND #define random rand #define srandom(s) srand(s) #endif #endif #endif /* define signal if DNE */ #ifndef HAVE_SIGNAL #ifdef HAVE_SIGSET #define signal(a,b) sigset(a,b) #endif #endif /* define if you have librpm and libdb */ #undef HAVE_LIBDB #undef HAVE_LIBRPM /* define if you have pkginfo */ #undef HAVE_PKGINFO /* define if you have gethostbyname */ #undef HAVE_GETHOSTBYNAME /* define if you have getservbyname */ #undef HAVE_GETSERVBYNAME /* printing system */ #undef HAVE_LPSTAT #undef LPSTAT_PATH #undef HAVE_PRINTCAP /* define if you want to build with reentrant/threaded code */ #undef NS_REENTRANT /* Not-to-be-compiled macros for use by configure only */ #define config_require(x) #define config_arch_require(x,y) #define config_parse_dot_conf(w,x,y,z) #define config_add_mib(x) #ifdef WIN32 #define ENV_SEPARATOR ";" #define ENV_SEPARATOR_CHAR ';' #else #define ENV_SEPARATOR ":" #define ENV_SEPARATOR_CHAR ':' #endif #include SYSTEM_INCLUDE_FILE #include MACHINE_INCLUDE_FILE #if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST) #define CAN_USE_NLIST #endif #if HAVE_DMALLOC_H #define DMALLOC_FUNC_CHECK #endif #undef INET6