⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net-snmp-config.h.in

📁 开发snmp的开发包有两个开放的SNMP开发库
💻 IN
📖 第 1 页 / 共 4 页
字号:
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. *//* #undef HAVE_SYS_WAIT_H *//* Define to 1 if you have the `tcgetattr' function. *//* #undef HAVE_TCGETATTR *//* Define to 1 if you have the <ufs/ffs/fs.h> header file. *//* #undef HAVE_UFS_FFS_FS_H *//* Define to 1 if you have the <ufs/fs.h> header file. *//* #undef HAVE_UFS_FS_H *//* Define to 1 if you have the <ufs/ufs/dinode.h> header file. *//* #undef HAVE_UFS_UFS_DINODE_H *//* Define to 1 if you have the <ufs/ufs/inode.h> header file. *//* #undef HAVE_UFS_UFS_INODE_H *//* Define to 1 if you have the <ufs/ufs/quota.h> header file. *//* #undef HAVE_UFS_UFS_QUOTA_H *//* Define to 1 if you have the `uname' function. *//* #undef HAVE_UNAME *//* Define to 1 if you have the <unistd.h> header file. *//* #undef HAVE_UNISTD_H *//* Define to 1 if you have the `usleep' function. *//* #undef HAVE_USLEEP *//* Define to 1 if you have the <utmpx.h> header file. *//* #undef HAVE_UTMPX_H *//* Define to 1 if you have the <utsname.h> header file. *//* #undef HAVE_UTSNAME_H *//* Define to 1 if you have the <uvm/uvm_extern.h> header file. *//* #undef HAVE_UVM_UVM_EXTERN_H *//* Define to 1 if you have the <uvm/uvm_param.h> header file. *//* #undef HAVE_UVM_UVM_PARAM_H *//* Define to 1 if you have the <vm/swap_pager.h> header file. *//* #undef HAVE_VM_SWAP_PAGER_H *//* Define to 1 if you have the <vm/vm_extern.h> header file. *//* #undef HAVE_VM_VM_EXTERN_H *//* Define to 1 if you have the <vm/vm.h> header file. *//* #undef HAVE_VM_VM_H *//* Define to 1 if you have the <vm/vm_param.h> header file. *//* #undef HAVE_VM_VM_PARAM_H *//* Define to 1 if you have the `vsnprintf' function. */#define HAVE_VSNPRINTF 1/* Define to 1 if you have the <winsock.h> header file. */#define HAVE_WINSOCK_H 1/* Define to 1 if you have the <xti.h> header file. *//* #undef HAVE_XTI_H *//* Define to the address where bug reports for this package should be sent. *//* #undef PACKAGE_BUGREPORT *//* Define to the full name of this package. */#define PACKAGE_NAME "Net-SNMP"/* Define to the full name and version of this package. *//* #undef PACKAGE_STRING *//* Define to the one symbol short name of this package. */#define PACKAGE_TARNAME "net-snmp"/* Define to the version of this package. *//* #undef PACKAGE_VERSION *//* Define as the return type of signal handlers (`int' or `void'). */#define RETSIGTYPE void/* The size of a `int', as computed by sizeof. */#define SIZEOF_INT 4/* The size of a `long', as computed by sizeof. */#define SIZEOF_LONG 4/* The size of a `short', as computed by sizeof. */#define SIZEOF_SHORT 2/* 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 to 1 if you have the ANSI C header files. */#define STDC_HEADERS 1/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */#define TIME_WITH_SYS_TIME 1/* Define to 1 if your processor stores words with the most significant byte   first (like Motorola and SPARC, unlike Intel and VAX). *//* #undef WORDS_BIGENDIAN *//* Define to 1 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 to empty if `const' does not conform to ANSI C. *//* #undef const *//* Define as `__inline' if that's what the C compiler calls it, or to nothing   if it is not supported. */#define inline __inline/* Define to `long' if <sys/types.h> does not define. *//* #undef off_t *//* Define to `int' if <sys/types.h> does not define. *//* #undef pid_t *//* define if you have getdevs() *//* #undef HAVE_GETDEVS *//* define if you have devstat_getdevs() *//* #undef HAVE_DEVSTAT_GETDEVS *//* define if you have <netinet/in_pcb.h> *//* #undef HAVE_NETINET_IN_PCB_H *//* define if you have <sys/disklabel.h> *//* #undef HAVE_SYS_DISKLABEL_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) */#define RTENTRY 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 *//* Does struct in6_addr have a s6_un.sa6_ladd field? *//* #undef STRUCT_IN6_ADDR_HAS_S6_UN_SA6_LADDR *//* 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 *//* ipstat structure tests *//* #undef STRUCT_IPSTAT_HAS_IPS_CANTFORWARD *//* #undef STRUCT_IPSTAT_HAS_IPS_CANTFRAG *//* #undef STRUCT_IPSTAT_HAS_IPS_DELIVERED *//* #undef STRUCT_IPSTAT_HAS_IPS_FRAGDROPPED *//* #undef STRUCT_IPSTAT_HAS_IPS_FRAGTIMEOUT *//* #undef STRUCT_IPSTAT_HAS_IPS_LOCALOUT *//* #undef STRUCT_IPSTAT_HAS_IPS_NOPROTO *//* #undef STRUCT_IPSTAT_HAS_IPS_NOROUTE *//* #undef STRUCT_IPSTAT_HAS_IPS_ODROPPED *//* #undef STRUCT_IPSTAT_HAS_IPS_OFRAGMENTS *//* #undef STRUCT_IPSTAT_HAS_IPS_REASSEMBLED *//* vfsstat.f_frsize *//* #undef STRUCT_STATVFS_HAS_F_FRSIZE *//* vfsstat.f_files *//* #undef STRUCT_STATVFS_HAS_F_FILES *//* statfs inode structure tests*//* #undef STRUCT_STATFS_HAS_F_FILES *//* #undef STRUCT_STATFS_HAS_F_FFREE *//* #undef STRUCT_STATFS_HAS_F_FAVAIL *//* des_ks_struct.weak_key *//* #undef STRUCT_DES_KS_STRUCT_HAS_WEAK_KEY *//* ifnet needs to have _KERNEL defined *//* #undef IFNET_NEEDS_KERNEL *//* sysctl works to get boottime, etc... *//* #undef NETSNMP_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-2 tree Info *//* These are the system information variables. */#define NETSNMP_VERS_DESC   "unknown"             /* overridden at run time */#define NETSNMP_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 NETSNMP_PROCMIBNUM 2/*   exec/shell NAME COMMAND      */#define NETSNMP_SHELLMIBNUM 8/*   swap MIN                     */#define NETSNMP_MEMMIBNUM 4/*   disk DISK MINSIZE            */#define NETSNMP_DISKMIBNUM 9/*   load 1 5 15                  */#define NETSNMP_LOADAVEMIBNUM 10/* which version are you using? This mibloc will tell you */#define NETSNMP_VERSIONMIBNUM 100/* Reports errors the agent runs into *//* (typically its "can't fork, no mem" problems) */#define NETSNMP_ERRORMIBNUM 101/* The sub id of EXTENSIBLEMIB returned to queries of   .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */#define NETSNMP_AGENTID 250/* This ID is returned after the NETSNMP_AGENTID above.  IE, the resulting   value returned by a query to sysObjectID is   EXTENSIBLEMIB.NETSNMP_AGENTID.???, where ??? is defined below by OSTYPE */#define NETSNMP_HPUX9ID 1#define NETSNMP_SUNOS4ID 2#define NETSNMP_SOLARISID 3#define NETSNMP_OSFID 4#define NETSNMP_ULTRIXID 5#define NETSNMP_HPUX10ID 6#define NETSNMP_NETBSD1ID 7#define NETSNMP_FREEBSDID 8#define NETSNMP_IRIXID 9#define NETSNMP_LINUXID 10#define NETSNMP_BSDIID 11#define NETSNMP_OPENBSDID 12#define NETSNMP_WIN32ID 13#define NETSNMP_HPUX11ID 14#define NETSNMP_UNKNOWNID 255#ifdef hpux9#define OSTYPE NETSNMP_HPUX9ID#endif#ifdef hpux10#define OSTYPE NETSNMP_HPUX10ID#endif#ifdef hpux11#define OSTYPE NETSNMP_HPUX11ID#endif#ifdef sunos4#define OSTYPE NETSNMP_SUNOS4ID#endif#ifdef solaris2#define OSTYPE NETSNMP_SOLARISID#endif#if defined(osf3) || defined(osf4) || defined(osf5)#define OSTYPE NETSNMP_OSFID#endif#ifdef ultrix4#define OSTYPE NETSNMP_ULTRIXID#endif#ifdef netbsd1#define OSTYPE NETSNMP_NETBSD1ID#endif#if defined(__FreeBSD__)#define OSTYPE NETSNMP_FREEBSDID#endif#if defined(irix6) || defined(irix5)#define OSTYPE NETSNMP_IRIXID#endif#ifdef linux#define OSTYPE NETSNMP_LINUXID#endif#if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)#define OSTYPE NETSNMP_BSDIID#endif#ifdef openbsd2#define OSTYPE NETSNMP_OPENBSDID#endif#ifdef WIN32#define OSTYPE NETSNMP_WIN32ID#endif/* unknown */#ifndef OSTYPE#define OSTYPE NETSNMP_UNKNOWNID#endif/* The enterprise number has been assigned by the IANA group.   *//* Optionally, this may point to the location in the tree your  *//* company/organization has been allocated.                     *//* The assigned enterprise number for the NET_SNMP MIB modules. */#define NETSNMP_ENTERPRISE_OID			8072#define NETSNMP_ENTERPRISE_MIB			1,3,6,1,4,1,8072#define NETSNMP_ENTERPRISE_DOT_MIB		1.3.6.1.4.1.8072#define NETSNMP_ENTERPRISE_DOT_MIB_LENGTH	7/* The assigned enterprise number for sysObjectID. */#define NETSNMP_SYSTEM_MIB		1,3,6,1,4,1,8072,3,2,OSTYPE#define NETSNMP_SYSTEM_DOT_MIB		1.3.6.1.4.1.8072.3.2.OSTYPE#define NETSNMP_SYSTEM_DOT_MIB_LENGTH	10/* The assigned enterprise number for notifications. */#define NETSNMP_NOTIFICATION_MIB		1,3,6,1,4,1,8072,4#define NETSNMP_NOTIFICATION_DOT_MIB		1.3.6.1.4.1.8072.4#define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH	8/* this is the location of the ucdavis mib tree.  It shouldn't be   changed, as the places it is used are expected to be constant   values or are directly tied to the UCD-SNMP-MIB. */#define NETSNMP_UCDAVIS_OID		2021#define NETSNMP_UCDAVIS_MIB		1,3,6,1,4,1,2021#define NETSNMP_UCDAVIS_DOT_MIB		1.3.6.1.4.1.2021#define NETSNMP_UCDAVIS_DOT_MIB_LENGTH	7/* this is the location of the net-snmp mib tree.  It shouldn't be   changed, as the places it is used are expected to be constant   values or are directly tied to the UCD-SNMP-MIB. */#define NETSNMP_OID             8072#define NETSNMP_MIB             1,3,6,1,4,1,8072#define NETSNMP_DOT_MIB         1.3.6.1.4.1.8072#define NETSNMP_DOT_MIB_LENGTH  7/* how long to wait (seconds) for error querys before reseting the error trap.*/#define NETSNMP_ERRORTIMELENGTH 600/* Exec command to fix PROC problems *//* %s will be replaced by the process name in error *//* #define NETSNMP_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 NETSNMP_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 NETSNMP_EXCACHETIME 30#define NETSNMP_CACHEFILE ".snmp-exec-cache"#define NETSNMP_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 NETSNMP_DEFDISKMINIMUMSPACE 100000#define NETSNMP_DEFMAXLOADAVE 12.0      /* default maximum load average before error */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -