1/* include/net-snmp/net-snmp-config.h.in. Generated from configure.in by autoheader. */ 2/* modified by hand with care. */ 3 4#ifndef NET_SNMP_CONFIG_H 5#define NET_SNMP_CONFIG_H 6 7/* _MSC_VER values 8 1900 = MSCV++ 14.0 (Visual Studio 2015) 9 1800 = MSVC++ 12.0 (Visual Studio 2013) 10 1700 = MSVC++ 11.0 (Visual Studio 2012) 11 1600 = MSVC++ 10.0 (Visual Studio 2010) 12 1500 = MSVC++ 9.0 (Visual Studio 2008) 13 1400 = MSVC++ 8.0 (Visual Studio 2005) 14 1310 = MSVC++ 7.1 (Visual Studio 2003) 15 1300 = MSVC++ 7.0 (Visual Studio 2002) 16 1200 = MSVC++ 6.0 17*/ 18 19#ifdef _MSC_VER 20/* Disable warning 4018: signed/unsigned mismatch. */ 21#pragma warning (disable: 4018) 22#endif 23 24/* Automatically set by Windows perl Configure script. 25 * When compiling with the MSVC workspace, this must be set manually. 26 * See the PACKAGE_VERSION variable in Unix /configure script 27*/ 28#ifndef PACKAGE_VERSION 29#define PACKAGE_VERSION "unknown" 30#endif 31 32/* Define HAVE_WIN32_PLATFORM_SDK if you have: 33 * Microsoft Visual Studio MSVC 6.0 and the Platform SDK (PSDK) 34 * Microsoft Visual Studio.Net 2002 35 * Microsoft Visual Studio.Net 2003 36 */ 37/* #undef HAVE_WIN32_PLATFORM_SDK */ 38 39/* Define NETSNMP_ENABLE_IPV6 to enable IPv6. IPv6 is only available on 40 * Windows XP and higher. */ 41/* #undef NETSNMP_ENABLE_IPV6 */ 42 43/* Only use Windows API functions available on Windows 2000 SP4 or later. 44 * We need at least SP1 for some IPv6 defines in ws2ipdef.h 45 */ 46#ifndef _WIN32_WINNT 47#define _WIN32_WINNT 0x600 /*_WIN32_WINNT_WIN6*/ 48#else 49#if _WIN32_WINNT < 0x501 50#error _WIN32_WINNT is too low - it should be set to at least 0x501. 51#endif 52#endif 53 54#define INSTALL_BASE "c:/usr" 55 56/* config.h: a general config file */ 57 58/* Default (SNMP) version number for the tools to use */ 59#define NETSNMP_DEFAULT_SNMP_VERSION 3 60 61/* don't change these values! */ 62#define NETSNMP_SNMPV1 0xAAAA /* readable by anyone */ 63#define NETSNMP_SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */ 64#define NETSNMP_SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */ 65 66/* default list of mibs to load */ 67 68#define NETSNMP_DEFAULT_MIBS "IP-MIB;IF-MIB;TCP-MIB;UDP-MIB;HOST-RESOURCES-MIB;SNMPv2-MIB;RFC1213-MIB;NOTIFICATION-LOG-MIB;UCD-SNMP-MIB;UCD-DEMO-MIB;SNMP-TARGET-MIB;NET-SNMP-AGENT-MIB;DISMAN-EVENT-MIB;SNMP-VIEW-BASED-ACM-MIB;SNMP-COMMUNITY-MIB;SNMP-FRAMEWORK-MIB;SNMP-MPD-MIB;SNMP-USER-BASED-SM-MIB;SNMP-NOTIFICATION-MIB;SNMPv2-TM" 69 70/* default location to look for mibs to load using the above tokens 71 and/or those in the MIBS envrionment variable*/ 72#define NETSNMP_DEFAULT_MIBDIRS INSTALL_BASE ## "/share/snmp/mibs" 73 74/* default mib files to load, specified by path. */ 75/* #undef NETSNMP_DEFAULT_MIBFILES */ 76 77/* should we compile to use special opaque types: float, double, 78 counter64, i64, ui64, union? */ 79#define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1 80 81/* comment the next line if you are compiling with libsnmp.h 82 and are not using the UC-Davis SNMP library. */ 83#define UCD_SNMP_LIBRARY 1 84 85/* define if you want to compile support for both authentication and 86 privacy support. */ 87#define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1 88 89/* define if you are using the MD5 code ...*/ 90/* #undef NETSNMP_USE_INTERNAL_MD5 */ 91 92/* define if you are using the codeS11 library ...*/ 93/* #undef NETSNMP_USE_PKCS11 */ 94 95/* Used to make the compiler issue a warning about deprecated functions and 96 variables */ 97#define NETSNMP_ATTRIBUTE_DEPRECATED 98 99/* add in recent CMU library extensions (not complete) */ 100/* #undef CMU_COMPATIBLE */ 101 102/* add in recent resource lock functions (not complete) */ 103/* #undef NETSNMP_REENTRANT */ 104 105/* debugging stuff */ 106/* if defined, we optimize the code to exclude all debugging calls. */ 107/* #undef NETSNMP_NO_DEBUGGING */ 108/* ignore the -D flag and always print debugging information */ 109#define NETSNMP_ALWAYS_DEBUG 0 110 111/* reverse encoding BER packets is both faster and more efficient in space. */ 112#define NETSNMP_USE_REVERSE_ASNENCODING 1 113#define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */ 114 115/* NETSNMP_PERSISTENT_DIRECTORY: If defined, the library is capabile of saving 116 persisant information to this directory in the form of configuration 117 lines: NETSNMP_PERSISTENT_DIRECTORY/NAME.persistent.conf */ 118#define NETSNMP_PERSISTENT_DIRECTORY INSTALL_BASE ## "/snmp/persist" 119 120/* NETSNMP_PERSISTENT_MASK: the umask permissions to set up persistent files with */ 121/* #undef NETSNMP_PERSISTENT_MASK -- no win32 umask */ 122 123/* NETSNMP_AGENT_DIRECTORY_MODE: the mode the agents should use to create 124 directories with. Since the data stored here is probably sensitive, it 125 probably should be read-only by root/administrator. */ 126#define NETSNMP_AGENT_DIRECTORY_MODE 0700 127 128/* NETSNMP_MAX_PERSISTENT_BACKUPS: 129 * The maximum number of persistent backups the library will try to 130 * read from the persistent cache directory. If an application fails to 131 * close down successfully more than this number of times, data will be lost. 132 */ 133#define NETSNMP_MAX_PERSISTENT_BACKUPS 10 134 135 136/* define if you are embedding perl in the main agent */ 137/* #undef NETSNMP_EMBEDDED_PERL */ 138 139#if notused 140/* define the system type include file here */ 141#define NETSNMP_SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h> 142 143/* define the machine (cpu) type include file here */ 144#define NETSNMP_MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h> 145#endif 146 147/* SNMPLIBDIR contains important files */ 148 149#define SNMPLIBPATH INSTALL_BASE ## "/lib" 150#define SNMPSHAREPATH INSTALL_BASE ## "/share/snmp" 151#define SNMPCONFPATH INSTALL_BASE ## "/etc/snmp" 152#define SNMPDLMODPATH INSTALL_BASE ## "/lib/dlmod" 153 154/* NETSNMP_LOGFILE: If defined it closes stdout/err/in and opens this in out/err's 155 place. (stdin is closed so that sh scripts won't wait for it) */ 156/* #undef NETSNMP_LOGFILE */ 157 158/* default system contact */ 159#define NETSNMP_SYS_CONTACT "unknown" 160 161/* system location */ 162#define NETSNMP_SYS_LOC "unknown" 163 164/* Use libwrap to handle allow/deny hosts? */ 165/* #undef NETSNMP_USE_LIBWRAP */ 166 167/* Define if _beginthreadex() is defined in <process.h> */ 168#define HAVE__BEGINTHREADEX 1 169 170/* Define if _cputs() is defined in <conio.h> */ 171#define HAVE__CPUTS 1 172 173/* Define if _getch() is defined in <conio.h> */ 174#define HAVE__GETCH 1 175 176/* Define if _get_osfhandle() is defined in <io.h> */ 177#define HAVE__GET_OSFHANDLE 1 178 179/* Define if _open_osfhandle() is defined in <io.h> */ 180#define HAVE__OPEN_OSFHANDLE 1 181 182/* location of UNIX kernel */ 183#define KERNEL_LOC "unknown" 184 185/* location of mount table list */ 186#define ETC_MNTTAB "unknown" 187 188/* location of swap device (ok if not found) */ 189/* #undef DMEM_LOC */ 190 191/* Command to generate ps output, the final column must be the process 192 name withOUT arguments */ 193#define PSCMD "/bin/ps" 194 195/* Where is the uname command */ 196#define UNAMEPROG "/bin/uname" 197 198/* pattern for temporary file names */ 199#define NETSNMP_TEMP_FILE_PATTERN INSTALL_BASE ## "/temp/snmpdXXXXXX" 200 201/* testing code sections. */ 202/* #undef NETSNMP_ENABLE_TESTING_CODE */ 203 204/* If you don't have root access don't exit upon kmem errors */ 205/* #undef NETSNMP_NO_ROOT_ACCESS */ 206 207/* If we don't want to use kmem. */ 208/* #undef NETSNMP_NO_KMEM_USAGE */ 209 210/* If you don't want the agent to report on variables it doesn't have data for */ 211#define NETSNMP_NO_DUMMY_VALUES 1 212 213/* Define if statfs takes 2 args and the second argument has 214 type struct fs_data. [Ultrix] */ 215/* #undef STAT_STATFS_FS_DATA */ 216 217/* Define if the TCP timer constants in <netinet/tcp_timer.h> 218 depend on the integer variable `hz'. [FreeBSD 4.x] */ 219/* #undef TCPTV_NEEDS_HZ */ 220 221 222/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP 223 systems. This function is required for `alloca.c' support on those systems. 224 */ 225/* #undef CRAY_STACKSEG_END */ 226 227/* Define to 1 if using `alloca.c'. */ 228/* #undef C_ALLOCA */ 229 230/* Define if DES encryption should not be supported */ 231/* #undef NETSNMP_DISABLE_DES */ 232 233/* Define if MD5 authentication should not be supported */ 234/* #undef NETSNMP_DISABLE_MD5 */ 235 236/* Define if mib loading and parsing code should not be included */ 237/* #undef NETSNMP_DISABLE_MIB_LOADING */ 238 239/* Define if SNMPv1 code should not be included */ 240/* #undef NETSNMP_DISABLE_SNMPV1 */ 241 242/* Define if SNMPv2c code should not be included */ 243/* #undef NETSNMP_DISABLE_SNMPV2C */ 244 245/* Define if AES-192/AES-256 encryption should be supported */ 246/* #undef NETSNMP_DRAFT_BLUMENTHAL_AES_04 */ 247 248/* Define to 1 if you have the `AES_cfb128_encrypt' function. */ 249/* #undef HAVE_AES_CFB128_ENCRYPT */ 250 251/* Define to 1 if you have `alloca', as a function or macro. */ 252/* #undef HAVE_ALLOCA */ 253 254/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). 255 */ 256/* #undef HAVE_ALLOCA_H */ 257 258/* Define to 1 if you have the <arpa/inet.h> header file. */ 259/* #undef HAVE_ARPA_INET_H */ 260 261/* Define to 1 if you have the <asm/page.h> header file. */ 262/* #undef HAVE_ASM_PAGE_H */ 263 264/* Define to 1 if you have the `cgetnext' function. */ 265/* #undef HAVE_CGETNEXT */ 266 267/* Define to 1 if you have the <crtdbg.h> header file. */ 268#define HAVE_CRTDBG_H 1 269 270/* Define to 1 if you have the <direct.h> header file. */ 271#define HAVE_DIRECT_H 1 272 273/* Define to 1 if you have the `DH_get0_key' function. */ 274#define HAVE_DH_GET0_KEY 1 275 276/* Define to 1 if you have the `DH_get0_pqg' function. */ 277#define HAVE_DH_GET0_PQG 1 278 279/* Define to 1 if you have the `X509_get_signature_nid' function. */ 280#define HAVE_X509_GET_SIGNATURE_NID 1 281 282/* Define to 1 if you have the `X509_NAME_ENTRY_get_data' function. */ 283#define HAVE_X509_NAME_ENTRY_GET_DATA 1 284 285/* Define to 1 if you have the `X509_NAME_ENTRY_get_object' function. */ 286#define HAVE_X509_NAME_ENTRY_GET_OBJECT 1 287 288/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 289 */ 290/* #undef HAVE_DIRENT_H */ 291 292/* Define to 1 if you have the <dlfcn.h> header file. */ 293/* #undef HAVE_DLFCN_H */ 294 295/* Define to 1 if you have the `dlopen' function. */ 296/* #undef HAVE_DLOPEN */ 297 298/* Define to 1 if you have the <err.h> header file. */ 299/* #undef HAVE_ERR_H */ 300 301/* Define to 1 if you have the `eval_pv' function. */ 302/* #undef HAVE_EVAL_PV */ 303 304/* Define to 1 if you have the `execv' function. */ 305/* #undef HAVE_EXECV */ 306 307/* Define to 1 if you have the <fcntl.h> header file. */ 308#define HAVE_FCNTL_H 1 309 310/* Define to 1 if you have the `fork' function. */ 311/* #undef HAVE_FORK */ 312 313/* Define to 1 if you have the <fstab.h> header file. */ 314/* #undef HAVE_FSTAB_H */ 315 316/* Define to 1 if you have the `getaddrinfo' function. */ 317/* #undef HAVE_GETADDRINFO */ 318 319/* Define to 1 if you have the `getdtablesize' function. */ 320/* #undef HAVE_GETDTABLESIZE */ 321 322/* Define to 1 if you have the `getfsstat' function. */ 323/* #undef HAVE_GETFSSTAT */ 324 325/* Define to 1 if you have the `getgrnam' function. */ 326/* #undef HAVE_GETGRNAM */ 327 328/* Define to 1 if you have the `gethostname' function. */ 329#define HAVE_GETHOSTNAME 1 330 331/* Define to 1 if you have the `getipnodebyname' function. */ 332/* #undef HAVE_GETIPNODEBYNAME */ 333 334/* Define to 1 if you have the `getloadavg' function. */ 335/* #undef HAVE_GETLOADAVG */ 336 337/* Define to 1 if you have the `getmntent' function. */ 338/* #undef HAVE_GETMNTENT */ 339 340/* Define to 1 if you have the <getopt.h> header file. */ 341/* #undef HAVE_GETOPT_H */ 342 343/* Define to 1 if you have the `getpagesize' function. */ 344/* #undef HAVE_GETPAGESIZE */ 345 346/* Define to 1 if you have the `getpid' function. */ 347#define HAVE_GETPID 1 348 349/* Define to 1 if you have the `getpwnam' function. */ 350/* #undef HAVE_GETPWNAM */ 351 352/* Define to 1 if you have the `gettimeofday' function. */ 353/* #undef HAVE_GETTIMEOFDAY */ 354 355/* Define to 1 if you have the <grp.h> header file. */ 356/* #undef HAVE_GRP_H */ 357 358/* Define to 1 if you have the `if_freenameindex' function. */ 359/* #undef HAVE_IF_FREENAMEINDEX */ 360 361/* Define to 1 if you have the `if_nameindex' function. */ 362/* #undef HAVE_IF_NAMEINDEX */ 363 364/* Define to 1 if you have the <inet/mib2.h> header file. */ 365/* #undef HAVE_INET_MIB2_H */ 366 367#ifdef HAVE_WIN32_PLATFORM_SDK 368/* Define to 1 if you have the <iphlpapi.h> header file. */ 369#define HAVE_IPHLPAPI_H 370#endif 371 372/* Define to 1 if the system has the type `int32_t'. */ 373#define HAVE_INT32_T 1 374 375/* define if you have type uint32_t */ 376#define HAVE_UINT32_T 1 377 378/* define if you have type u_int32_t */ 379#undef HAVE_U_INT32_T 380 381/* define if you have type int64_t */ 382#define HAVE_INT64_T 1 383 384/* define if you have type uint64_t */ 385#define HAVE_UINT64_T 1 386 387/* define if you have type u_int64_t */ 388#undef HAVE_U_INT64_T 389 390/* Define to 1 if you have the <inttypes.h> header file. */ 391/* #undef HAVE_INTTYPES_H */ 392 393/* Define to 1 if you have the <ioctls.h> header file. */ 394/* #undef HAVE_IOCTLS_H */ 395 396/* Define to 1 if you have the <io.h> header file. */ 397#define HAVE_IO_H 1 398 399/* Define to 1 if you have the `knlist' function. */ 400/* #undef HAVE_KNLIST */ 401 402/* Define to 1 if you have the <kstat.h> header file. */ 403/* #undef HAVE_KSTAT_H */ 404 405/* Define to 1 if you have the `kvm_getprocs' function. */ 406/* #undef HAVE_KVM_GETPROCS */ 407 408/* Define to 1 if you have the <kvm.h> header file. */ 409/* #undef HAVE_KVM_H */ 410 411/* Define to 1 if you have the `kvm_openfiles' function. */ 412/* #undef HAVE_KVM_OPENFILES */ 413 414/* Define to 1 if you have the `crypto' library (-lcrypto). */ 415/* #undef HAVE_LIBCRYPTO */ 416 417/* Define to 1 if you have the `elf' library (-lelf). */ 418/* #undef HAVE_LIBELF */ 419 420/* Define to 1 if you have the `kstat' library (-lkstat). */ 421/* #undef HAVE_LIBKSTAT */ 422 423/* Define to 1 if you have the `m' library (-lm). */ 424/* #undef HAVE_LIBM */ 425 426/* Define to 1 if you have the `mld' library (-lmld). */ 427/* #undef HAVE_LIBMLD */ 428 429/* Define to 1 if you have the `nsl' library (-lnsl). */ 430/* #undef HAVE_LIBNSL */ 431 432/* Define to 1 if you have the <libperfstat.h> header file. */ 433/* #undef HAVE_LIBPERFSTAT_H */ 434 435/* Define to 1 if you have the `pkcs11' library (-lpkcs11). */ 436/* #undef HAVE_LIBPKCS11 */ 437 438/* Define to 1 if you have the `RSAglue' library (-lRSAglue). */ 439/* #undef HAVE_LIBRSAGLUE */ 440 441/* Define to 1 if you have the `rsaref' library (-lrsaref). */ 442/* #undef HAVE_LIBRSAREF */ 443 444/* Define to 1 if you have the `sensors' library (-lsensors). */ 445/* #undef HAVE_LIBSENSORS */ 446 447/* Define to 1 if you have the <limits.h> header file. */ 448#define HAVE_LIMITS_H 1 449 450/* Define to 1 if you have the <linux/hdreg.h> header file. */ 451/* #undef HAVE_LINUX_HDREG_H */ 452 453/* Define to 1 if you have the <linux/tasks.h> header file. */ 454/* #undef HAVE_LINUX_TASKS_H */ 455 456/* Define to 1 if you have the <lm.h> header file. */ 457#define HAVE_LM_H 1 458 459/* Define to 1 if you have the <locale.h> header file. */ 460#define HAVE_LOCALE_H 1 461 462/* Define to 1 if you have the `lrand48' function. */ 463/* #undef HAVE_LRAND48 */ 464 465/* Define to 1 if you have the <machine/param.h> header file. */ 466/* #undef HAVE_MACHINE_PARAM_H */ 467 468/* Define to 1 if you have the <machine/pte.h> header file. */ 469/* #undef HAVE_MACHINE_PTE_H */ 470 471/* Define to 1 if you have the <machine/types.h> header file. */ 472/* #undef HAVE_MACHINE_TYPES_H */ 473 474/* Define to 1 if you have the <malloc.h> header file. */ 475#define HAVE_MALLOC_H 1 476 477/* Define to 1 if you have the <memory.h> header file. */ 478#define HAVE_MEMORY_H 1 479 480/* Define to 1 if you have the `mkstemp' function. */ 481/* #undef HAVE_MKSTEMP */ 482 483/* Define to 1 if you have the `mktime' function. */ 484/* #undef HAVE_MKTIME */ 485 486/* Define to 1 if you have the <mntent.h> header file. */ 487/* #undef HAVE_MNTENT_H */ 488 489/* Define to 1 if you have the <mtab.h> header file. */ 490/* #undef HAVE_MTAB_H */ 491 492/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ 493/* #undef HAVE_NDIR_H */ 494 495/* Define to 1 if you have the <netdb.h> header file. */ 496/* #undef HAVE_NETDB_H */ 497 498/* Define to 1 if you have the <netinet6/in6_pcb.h> header file. */ 499/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IN6_PCB_H */ 500 501/* Define to 1 if you have the <netinet6/in6_var.h> header file. */ 502/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IN6_VAR_H */ 503 504/* Define to 1 if you have the <netinet6/ip6_var.h> header file. */ 505/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IP6_VAR_H */ 506 507/* Define to 1 if you have the <netinet6/nd6.h> header file. */ 508/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_ND6_H */ 509 510/* Define to 1 if you have the <netinet6/tcp6_fsm.h> header file. */ 511/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_FSM_H */ 512 513/* Define to 1 if you have the <netinet6/tcp6.h> header file. */ 514/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_H */ 515 516/* Define to 1 if you have the <netinet6/tcp6_timer.h> header file. */ 517/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_TIMER_H */ 518 519/* Define to 1 if you have the <netinet6/tcp6_var.h> header file. */ 520/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_VAR_H */ 521 522/* Define to 1 if you have the <netinet/icmp_var.h> header file. */ 523/* #undef HAVE_NETINET_ICMP_VAR_H */ 524 525/* Define to 1 if you have the <netinet/if_ether.h> header file. */ 526/* #undef HAVE_NETINET_IF_ETHER_H */ 527 528/* Define to 1 if you have the <netinet/in.h> header file. */ 529/* #undef HAVE_NETINET_IN_H */ 530 531/* Define to 1 if you have the <netinet/in_systm.h> header file. */ 532/* #undef HAVE_NETINET_IN_SYSTM_H */ 533 534/* Define to 1 if you have the <netinet/in_var.h> header file. */ 535/* #undef HAVE_NETINET_IN_VAR_H */ 536 537/* Define to 1 if you have the <netinet/ip6.h> header file. */ 538/* #undef HAVE_NETINET_IP6_H */ 539 540/* Define to 1 if you have the <netinet/ip.h> header file. */ 541/* #undef HAVE_NETINET_IP_H */ 542 543/* Define to 1 if you have the <netinet/ip_icmp.h> header file. */ 544/* #undef HAVE_NETINET_IP_ICMP_H */ 545 546/* Define to 1 if you have the <netinet/icmp6.h> header file. */ 547/* #undef HAVE_NETINET_ICMP6_H */ 548 549/* Define to 1 if you have the <netinet/ip_var.h> header file. */ 550/* #undef HAVE_NETINET_IP_VAR_H */ 551 552/* Define to 1 if you have the <netinet/tcpip.h> header file. */ 553/* #undef HAVE_NETINET_TCPIP_H */ 554 555/* Define to 1 if you have the <netinet/tcp_fsm.h> header file. */ 556/* #undef HAVE_NETINET_TCP_FSM_H */ 557 558/* Define to 1 if you have the <netinet/tcp.h> header file. */ 559/* #undef HAVE_NETINET_TCP_H */ 560 561/* Define to 1 if you have the <netinet/tcp_timer.h> header file. */ 562/* #undef HAVE_NETINET_TCP_TIMER_H */ 563 564/* Define to 1 if you have the <netinet/tcp_var.h> header file. */ 565/* #undef HAVE_NETINET_TCP_VAR_H */ 566 567/* Define to 1 if you have the <netinet/udp.h> header file. */ 568/* #undef HAVE_NETINET_UDP_H */ 569 570/* Define to 1 if you have the <netinet/udp_var.h> header file. */ 571/* #undef HAVE_NETINET_UDP_VAR_H */ 572 573/* Define to 1 if you have the <netipx/ipx.h> header file. */ 574/* #undef HAVE_NETIPX_IPX_H */ 575 576/* Define to 1 if you have the <net/if_dl.h> header file. */ 577/* #undef HAVE_NET_IF_DL_H */ 578 579/* Define to 1 if you have the <net/if.h> header file. */ 580/* #undef HAVE_NET_IF_H */ 581 582/* Define to 1 if you have the <net/if_mib.h> header file. */ 583/* #undef HAVE_NET_IF_MIB_H */ 584 585/* Define to 1 if you have the <net/if_types.h> header file. */ 586/* #undef HAVE_NET_IF_TYPES_H */ 587 588/* Define to 1 if you have the <net/if_var.h> header file. */ 589/* #undef HAVE_NET_IF_VAR_H */ 590 591/* Define to 1 if you have the <net/route.h> header file. */ 592/* #undef HAVE_NET_ROUTE_H */ 593 594/* Define to 1 if you have the `nlist' function. */ 595/* #undef HAVE_NLIST */ 596 597/* Define to 1 if you have the <nlist.h> header file. */ 598/* #undef HAVE_NLIST_H */ 599 600/* Define to 1 if you have the <osreldate.h> header file. */ 601/* #undef HAVE_OSRELDATE_H */ 602 603/* Define to 1 if you have the <pkginfo.h> header file. */ 604/* #undef HAVE_PKGINFO_H */ 605 606/* Define to 1 if you have the <pkglocs.h> header file. */ 607/* #undef HAVE_PKGLOCS_H */ 608 609/* Define if you have <process.h> header file. (Win32-getpid) */ 610#define HAVE_PROCESS_H 1 611 612/* Define to 1 if you have the <pthread.h> header file. */ 613/* #undef HAVE_PTHREAD_H */ 614 615/* Define to 1 if you have the <pwd.h> header file. */ 616/* #undef HAVE_PWD_H */ 617 618/* Define to 1 if you have the `rand' function. */ 619#define HAVE_RAND 1 620 621/* Define to 1 if you have the `srand' function. */ 622#define HAVE_SRAND 1 623 624/* Define to 1 if you have the `random' function. */ 625#undef HAVE_RANDOM 626 627/* Define to 1 if you have the `regcomp' function. */ 628/* #undef HAVE_REGCOMP */ 629 630/* Define to 1 if you have the <regex.h> header file. */ 631/* #undef HAVE_REGEX_H */ 632 633/* Define to 1 if you have the `rpmGetPath' function. */ 634/* #undef HAVE_RPMGETPATH */ 635 636/* Define to 1 if you have the <rpmio.h> header file. */ 637/* #undef HAVE_RPMIO_H */ 638 639/* Define to 1 if you have the <rpm/rpmio.h> header file. */ 640/* #undef HAVE_RPM_RPMIO_H */ 641 642/* Define to 1 if you have the <search.h> header file. */ 643#define HAVE_SEARCH_H 1 644 645/* Define to 1 if you have the <security/cryptoki.h> header file. */ 646/* #undef HAVE_SECURITY_CRYPTOKI_H */ 647 648/* Define to 1 if you have the `select' function. */ 649/* #undef HAVE_SELECT */ 650 651/* Define to 1 if you have the `setenv' function. */ 652/* #undef HAVE_SETENV */ 653 654/* Define to 1 if you have the `setgid' function. */ 655/* #undef HAVE_SETGID */ 656 657/* Define to 1 if you have the `setgroups' function. */ 658/* #undef HAVE_SETGROUPS */ 659 660/* Define to 1 if you have the `setitimer' function. */ 661/* #undef HAVE_SETITIMER */ 662 663/* Define to 1 if you have the `setlocale' function. */ 664#define HAVE_SETLOCALE 1 665 666/* Define to 1 if you have the `setmntent' function. */ 667/* #undef HAVE_SETMNTENT */ 668 669/* Define to 1 if you have the `setsid' function. */ 670/* #undef HAVE_SETSID */ 671 672/* Define to 1 if you have the `setuid' function. */ 673/* #undef HAVE_SETUID */ 674 675/* Define to 1 if you have the <sgtty.h> header file. */ 676/* #undef HAVE_SGTTY_H */ 677 678/* Define to 1 if you have the `sigaction' function. */ 679/* #undef HAVE_SIGACTION */ 680 681/* Define to 1 if you have the `sigalrm' function. */ 682/* #undef HAVE_SIGALRM */ 683 684/* Define to 1 if you have the `sigblock' function. */ 685/* #undef HAVE_SIGBLOCK */ 686 687/* Define to 1 if you have the `sighold' function. */ 688/* #undef HAVE_SIGHOLD */ 689 690/* Define to 1 if you have the `signal' function. */ 691/* #undef HAVE_SIGNAL */ 692 693/* Define to 1 if you have the `sigset' function. */ 694/* #undef HAVE_SIGSET */ 695 696/* Define to 1 if you have the `snprintf' function. */ 697#define HAVE_SNPRINTF 1 698 699/* Define to 1 if you have the `socket' function. */ 700#define HAVE_SOCKET 1 701 702/* Define to 1 if you have the `statfs' function. */ 703/* #undef HAVE_STATFS */ 704 705/* Define to 1 if you have the `statvfs' function. */ 706/* #undef HAVE_STATVFS */ 707 708/* Define to 1 if you have the <stdint.h> header file. */ 709#ifdef __MINGW32__ 710#define HAVE_STDINT_H 1 711#endif 712 713/* Define to 1 if you have the <stdlib.h> header file. */ 714#define HAVE_STDLIB_H 1 715 716/* Define to 1 if you have the `stime' function. */ 717/* #undef HAVE_STIME */ 718 719/* Define to 1 if you have the `strcasestr' function. */ 720/* #undef HAVE_STRCASESTR */ 721 722/* Define to 1 if you have the `strdup' function. */ 723#define HAVE_STRDUP 1 724 725/* Define to 1 if you have the `strerror' function. */ 726#define HAVE_STRERROR 1 727 728/* Define to 1 if you have the <strings.h> header file. */ 729/* #undef HAVE_STRINGS_H */ 730 731/* Define to 1 if you have the <string.h> header file. */ 732#define HAVE_STRING_H 1 733 734/* Define to 1 if you have the `strlcpy' function. */ 735/* #undef HAVE_STRLCPY */ 736 737/* Define to 1 if you have the `strncasecmp' function. */ 738/* #undef HAVE_STRNCASECMP */ 739 740/* Define to 1 if you have the `strtol' function. */ 741#define HAVE_STRTOL 1 742 743/* Define to 1 if you have the `strtoul' function. */ 744#define HAVE_STRTOUL 1 745 746/* Define to 1 if you have the <syslog.h> header file. */ 747/* #undef HAVE_SYSLOG_H */ 748 749/* Define to 1 if you have the `system' function. */ 750#define HAVE_SYSTEM 1 751 752/* Define to 1 if you have the <sys/cdefs.h> header file. */ 753/* #undef HAVE_SYS_CDEFS_H */ 754 755/* Define to 1 if you have the <sys/conf.h> header file. */ 756/* #undef HAVE_SYS_CONF_H */ 757 758/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. 759 */ 760/* #undef HAVE_SYS_DIR_H */ 761 762/* Define to 1 if you have the <sys/diskio.h> header file. */ 763/* #undef HAVE_SYS_DISKIO_H */ 764 765/* Define to 1 if you have the <sys/dkio.h> header file. */ 766/* #undef HAVE_SYS_DKIO_H */ 767 768/* Define to 1 if you have the <sys/dmap.h> header file. */ 769/* #undef HAVE_SYS_DMAP_H */ 770 771/* Define to 1 if you have the <sys/file.h> header file. */ 772/* #undef HAVE_SYS_FILE_H */ 773 774/* Define to 1 if you have the <sys/filio.h> header file. */ 775/* #undef HAVE_SYS_FILIO_H */ 776 777/* Define to 1 if you have the <sys/fixpoint.h> header file. */ 778/* #undef HAVE_SYS_FIXPOINT_H */ 779 780/* Define to 1 if you have the <sys/fs.h> header file. */ 781/* #undef HAVE_SYS_FS_H */ 782 783/* Define to 1 if you have the <sys/hashing.h> header file. */ 784/* #undef HAVE_SYS_HASHING_H */ 785 786/* Define to 1 if you have the <sys/ioctl.h> header file. */ 787/* #undef HAVE_SYS_IOCTL_H */ 788 789/* Define to 1 if you have the <sys/loadavg.h> header file. */ 790/* #undef HAVE_SYS_LOADAVG_H */ 791 792/* Define to 1 if you have the <sys/mbuf.h> header file. */ 793/* #undef HAVE_SYS_MBUF_H */ 794 795/* Define to 1 if you have the <sys/mntent.h> header file. */ 796/* #undef HAVE_SYS_MNTENT_H */ 797 798/* Define to 1 if you have the <sys/mnttab.h> header file. */ 799/* #undef HAVE_SYS_MNTTAB_H */ 800 801/* Define to 1 if you have the <sys/mount.h> header file. */ 802/* #undef HAVE_SYS_MOUNT_H */ 803 804/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. 805 */ 806/* #undef HAVE_SYS_NDIR_H */ 807 808/* Define to 1 if you have the <sys/param.h> header file. */ 809/* #undef HAVE_SYS_PARAM_H */ 810 811/* Define to 1 if you have the <sys/pool.h> header file. */ 812/* #undef HAVE_SYS_POOL_H */ 813 814/* Define to 1 if you have the <sys/proc.h> header file. */ 815/* #undef HAVE_SYS_PROC_H */ 816 817/* Define to 1 if you have the <sys/protosw.h> header file. */ 818/* #undef HAVE_SYS_PROTOSW_H */ 819 820/* Define to 1 if you have the <sys/pstat.h> header file. */ 821/* #undef HAVE_SYS_PSTAT_H */ 822 823/* Define to 1 if you have the <sys/queue.h> header file. */ 824/* #undef HAVE_SYS_QUEUE_H */ 825 826/* Define to 1 if you have the <sys/select.h> header file. */ 827/* #undef HAVE_SYS_SELECT_H */ 828 829/* Define to 1 if you have the <sys/socketvar.h> header file. */ 830/* #undef HAVE_SYS_SOCKETVAR_H */ 831 832/* Define to 1 if you have the <sys/socket.h> header file. */ 833/* #undef HAVE_SYS_SOCKET_H */ 834 835/* Define to 1 if you have the <sys/sockio.h> header file. */ 836/* #undef HAVE_SYS_SOCKIO_H */ 837 838/* Define to 1 if you have the <sys/statfs.h> header file. */ 839/* #undef HAVE_SYS_STATFS_H */ 840 841/* Define to 1 if you have the <sys/statvfs.h> header file. */ 842/* #undef HAVE_SYS_STATVFS_H */ 843 844/* Define to 1 if you have the <sys/stat.h> header file. */ 845#define HAVE_SYS_STAT_H 1 846 847/* Define to 1 if you have the <sys/stream.h> header file. */ 848/* #undef HAVE_SYS_STREAM_H */ 849 850/* Define to 1 if you have the <sys/swap.h> header file. */ 851/* #undef HAVE_SYS_SWAP_H */ 852 853/* Define to 1 if you have the <sys/sysctl.h> header file. */ 854/* #undef HAVE_SYS_SYSCTL_H */ 855 856/* Define to 1 if you have the <sys/sysmp.h> header file. */ 857/* #undef HAVE_SYS_SYSMP_H */ 858 859/* Define to 1 if you have the <sys/tcpipstats.h> header file. */ 860/* #undef HAVE_SYS_TCPIPSTATS_H */ 861 862/* Define to 1 if you have the <sys/time.h> header file. */ 863/* #undef HAVE_SYS_TIME_H */ 864 865/* Define to 1 if you have the <sys/timeb.h> header file. */ 866#define HAVE_SYS_TIMEB_H 1 867 868/* Define to 1 if you have the <sys/types.h> header file. */ 869#define HAVE_SYS_TYPES_H 1 870 871/* Define to 1 if you have the <sys/un.h> header file. */ 872/* #undef HAVE_SYS_UN_H */ 873 874/* Define to 1 if you have the <sys/user.h> header file. */ 875/* #undef HAVE_SYS_USER_H */ 876 877/* Define to 1 if you have the <sys/utsname.h> header file. */ 878/* #undef HAVE_SYS_UTSNAME_H */ 879 880/* Define to 1 if you have the <sys/vfs.h> header file. */ 881/* #undef HAVE_SYS_VFS_H */ 882 883/* Define to 1 if you have the <sys/vmmac.h> header file. */ 884/* #undef HAVE_SYS_VMMAC_H */ 885 886/* Define to 1 if you have the <sys/vmmeter.h> header file. */ 887/* #undef HAVE_SYS_VMMETER_H */ 888 889/* Define to 1 if you have the <sys/vmparam.h> header file. */ 890/* #undef HAVE_SYS_VMPARAM_H */ 891 892/* Define to 1 if you have the <sys/vmsystm.h> header file. */ 893/* #undef HAVE_SYS_VMSYSTM_H */ 894 895/* Define to 1 if you have the <sys/vm.h> header file. */ 896/* #undef HAVE_SYS_VM_H */ 897 898/* Define to 1 if you have the <sys/vnode.h> header file. */ 899/* #undef HAVE_SYS_VNODE_H */ 900 901/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 902/* #undef HAVE_SYS_WAIT_H */ 903 904/* Define to 1 if you have the `tcgetattr' function. */ 905/* #undef HAVE_TCGETATTR */ 906 907/* Define to 1 if you have the <ufs/ffs/fs.h> header file. */ 908/* #undef HAVE_UFS_FFS_FS_H */ 909 910/* Define to 1 if you have the <ufs/fs.h> header file. */ 911/* #undef HAVE_UFS_FS_H */ 912 913/* Define to 1 if you have the <ufs/ufs/dinode.h> header file. */ 914/* #undef HAVE_UFS_UFS_DINODE_H */ 915 916/* Define to 1 if you have the <ufs/ufs/inode.h> header file. */ 917/* #undef HAVE_UFS_UFS_INODE_H */ 918 919/* Define to 1 if you have the <ufs/ufs/quota.h> header file. */ 920/* #undef HAVE_UFS_UFS_QUOTA_H */ 921 922/* Define to 1 if you have the `uname' function. */ 923/* #undef HAVE_UNAME */ 924 925/* Define to 1 if you have the <unistd.h> header file. */ 926/* #undef HAVE_UNISTD_H */ 927 928/* Define to 1 if you have the `usleep' function. */ 929/* #undef HAVE_USLEEP */ 930 931/* Define to 1 if you have the <utmpx.h> header file. */ 932/* #undef HAVE_UTMPX_H */ 933 934/* Define to 1 if you have the <utsname.h> header file. */ 935/* #undef HAVE_UTSNAME_H */ 936 937/* Define to 1 if you have the <uvm/uvm_extern.h> header file. */ 938/* #undef HAVE_UVM_UVM_EXTERN_H */ 939 940/* Define to 1 if you have the <uvm/uvm_param.h> header file. */ 941/* #undef HAVE_UVM_UVM_PARAM_H */ 942 943/* Define to 1 if you have the <vm/swap_pager.h> header file. */ 944/* #undef HAVE_VM_SWAP_PAGER_H */ 945 946/* Define to 1 if you have the <vm/vm_extern.h> header file. */ 947/* #undef HAVE_VM_VM_EXTERN_H */ 948 949/* Define to 1 if you have the <vm/vm.h> header file. */ 950/* #undef HAVE_VM_VM_H */ 951 952/* Define to 1 if you have the <vm/vm_param.h> header file. */ 953/* #undef HAVE_VM_VM_PARAM_H */ 954 955/* Define to 1 if you have the `vsnprintf' function. */ 956#define HAVE_VSNPRINTF 1 957 958/* Define to 1 if you have the <windows.h> header file. */ 959#define HAVE_WINDOWS_H 1 960 961/* Define to 1 if you have the <winsock.h> header file. */ 962#define HAVE_WINSOCK_H 1 963 964/* Define to 1 if you have the <winsock2.h> header file. */ 965#define HAVE_WINSOCK2_H 1 966 967/* Define to 1 if you have the <ws2tcpip.h> header file. */ 968#define HAVE_WS2TCPIP_H 1 969 970/* Set if IP_PKTINFO is usable */ 971#define HAVE_IP_PKTINFO 1 972 973/* Define to 1 if you have the <xti.h> header file. */ 974/* #undef HAVE_XTI_H */ 975 976/* Type of the fifth argument of select() */ 977#define NETSNMP_SELECT_TIMEVAL struct timeval 978 979/* Type of the third argument of ioctlsocket() */ 980#define NETSNMP_IOCTLSOCKET_ARG u_long 981 982/* Define to the address where bug reports for this package should be sent. */ 983/* #undef PACKAGE_BUGREPORT */ 984 985/* Define to the full name of this package. */ 986#ifndef PACKAGE_NAME 987#define PACKAGE_NAME "Net-SNMP" 988#endif 989 990/* Define to the full name and version of this package. */ 991/* #undef PACKAGE_STRING */ 992 993/* Define to the one symbol short name of this package. */ 994#ifndef PACKAGE_TARNAME 995#define PACKAGE_TARNAME "net-snmp" 996#endif 997 998/* Define to the version of this package. */ 999/* #undef PACKAGE_VERSION */ 1000 1001/* Define as the return type of signal handlers (`int' or `void'). */ 1002#define RETSIGTYPE void 1003 1004/* The size of a `int', as computed by sizeof. */ 1005#define SIZEOF_INT 4 1006 1007/* The size of a `long', as computed by sizeof. */ 1008#define SIZEOF_LONG 4 1009 1010/* The size of a `intmax_t', as computed by sizeof. */ 1011#define SIZEOF_INTMAX_T 8 1012 1013/* The size of a `short', as computed by sizeof. */ 1014#define SIZEOF_SHORT 2 1015 1016/* If using the C implementation of alloca, define if you know the 1017 direction of stack growth for your system; otherwise it will be 1018 automatically deduced at run-time. 1019 STACK_DIRECTION > 0 => grows toward higher addresses 1020 STACK_DIRECTION < 0 => grows toward lower addresses 1021 STACK_DIRECTION = 0 => direction of growth unknown */ 1022/* #undef STACK_DIRECTION */ 1023 1024/* Define to 1 if you have the ANSI C header files. */ 1025#define STDC_HEADERS 1 1026 1027/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 1028/* #undef TIME_WITH_SYS_TIME */ 1029 1030/* Define to 1 if on AIX 3. 1031 System headers sometimes define this. 1032 We just want to avoid a redefinition error message. */ 1033#ifndef _ALL_SOURCE 1034/* # undef _ALL_SOURCE */ 1035#endif 1036 1037/* Define to empty if `const' does not conform to ANSI C. */ 1038/* #undef const */ 1039 1040/* Define as `__inline' if that's what the C compiler calls it, or to nothing 1041 if it is not supported. */ 1042#define inline __inline 1043 1044/* Define to `long' if <sys/types.h> does not define. */ 1045/* #undef off_t */ 1046 1047/* Define to `int' if <sys/types.h> does not define. */ 1048/* #undef pid_t */ 1049 1050/* define if you have getdevs() */ 1051/* #undef HAVE_GETDEVS */ 1052 1053/* define if you have devstat_getdevs() */ 1054/* #undef HAVE_DEVSTAT_GETDEVS */ 1055 1056/* define if you have <netinet/in_pcb.h> */ 1057/* #undef HAVE_NETINET_IN_PCB_H */ 1058 1059/* define if you have <sys/disklabel.h> */ 1060/* #undef HAVE_SYS_DISKLABEL_H */ 1061 1062/* define if you are using linux and /proc/net/dev has the compressed 1063 field, which exists in linux kernels 2.2 and greater. */ 1064/* #undef PROC_NET_DEV_HAS_COMPRESSED */ 1065 1066/* define rtentry to ortentry on SYSV machines (alphas) */ 1067#define RTENTRY rtentry; 1068 1069/* Use BSD 4.4 routing table entries? */ 1070/* #undef RTENTRY_4_4 */ 1071 1072/* Does struct sigaction have a sa_sigaction field? */ 1073/* #undef HAVE_STRUCT_SIGACTION_SA_SIGACTION */ 1074 1075/* Does struct sockaddr have a sa_len field? */ 1076/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */ 1077 1078/* Does struct sockaddr have a sa_family2 field? */ 1079/* #undef HAVE_STRUCT_SOCKADDR_SA_UNION_SA_GENERIC_SA_FAMILY2 */ 1080 1081/* Does struct in6_addr have a s6_un.sa6_ladd field? */ 1082/* #undef HAVE_STRUCT_IN6_ADDR_S6_UN_SA6_LADDR */ 1083 1084/* msghdr.msg_control */ 1085/* #undef HAVE_STRUCT_MSGHDR_MSG_CONTROL */ 1086 1087/* msghdr.msg_flags */ 1088/* #undef HAVE_STRUCT_MSGHDR_MSG_FLAGS */ 1089 1090/* rtentry structure tests */ 1091/* #undef RTENTRY_RT_NEXT */ 1092/* #undef HAVE_STRUCT_RTENTRY_RT_DST */ 1093/* #undef HAVE_STRUCT_RTENTRY_RT_UNIT */ 1094/* #undef HAVE_STRUCT_RTENTRY_RT_USE */ 1095/* #undef HAVE_STRUCT_RTENTRY_RT_REFCNT */ 1096/* #undef HAVE_STRUCT_RTENTRY_RT_HASH */ 1097 1098/* ifnet structure tests */ 1099/* #undef HAVE_STRUCT_IFNET_IF_BAUDRATE */ 1100/* #undef HAVE_STRUCT_IFNET_IF_BAUDRATE_IFS_VALUE */ 1101/* #undef HAVE_STRUCT_IFNET_IF_SPEED */ 1102/* #undef HAVE_STRUCT_IFNET_IF_TYPE */ 1103/* #undef HAVE_STRUCT_IFNET_IF_IMCASTS */ 1104/* #undef HAVE_STRUCT_IFNET_IF_IQDROPS */ 1105/* #undef HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_SEC */ 1106/* #undef HAVE_STRUCT_IFNET_IF_NOPROTO */ 1107/* #undef HAVE_STRUCT_IFNET_IF_OMCASTS */ 1108/* #undef HAVE_STRUCT_IFNET_IF_XNAME */ 1109/* #undef HAVE_STRUCT_IFNET_IF_OBYTES */ 1110/* #undef HAVE_STRUCT_IFNET_IF_IBYTES */ 1111/* #undef HAVE_STRUCT_IFNET_IF_ADDRLIST */ 1112 1113/* tcpstat.tcps_rcvmemdrop */ 1114/* #undef HAVE_STRUCT_TCPSTAT_TCPS_RCVMEMDROP */ 1115 1116/* udpstat.udps_discard */ 1117/* #undef HAVE_STRUCT_UDPSTAT_UDPS_DISCARD */ 1118 1119/* udpstat.udps_discard */ 1120/* #undef HAVE_STRUCT_UDPSTAT_UDPS_NOPORT */ 1121 1122/* udpstat.udps_discard */ 1123/* #undef HAVE_STRUCT_UDPSTAT_UDPS_NOPORTBCAST */ 1124 1125/* udpstat.udps_discard */ 1126/* #undef HAVE_STRUCT_UDPSTAT_UDPS_FULLSOCK */ 1127 1128/* arphd.at_next */ 1129/* #undef HAVE_STRUCT_ARPHD_AT_NEXT */ 1130 1131/* ifaddr.ifa_next */ 1132/* #undef HAVE_STRUCT_IFADDR_IFA_NEXT */ 1133 1134/* ifnet.if_mtu */ 1135/* #undef HAVE_STRUCT_IFNET_IF_MTU */ 1136 1137/* swdevt.sw_nblksenabled */ 1138/* #undef HAVE_STRUCT_SWDEVT_SW_NBLKSENABLED */ 1139 1140/* nlist.n_value */ 1141/* #undef HAVE_STRUCT_NLIST_N_VALUE */ 1142 1143/* ipstat structure tests */ 1144/* #undef HAVE_STRUCT_IPSTAT_IPS_CANTFORWARD */ 1145/* #undef HAVE_STRUCT_IPSTAT_IPS_CANTFRAG */ 1146/* #undef HAVE_STRUCT_IPSTAT_IPS_DELIVERED */ 1147/* #undef HAVE_STRUCT_IPSTAT_IPS_FRAGDROPPED */ 1148/* #undef HAVE_STRUCT_IPSTAT_IPS_FRAGTIMEOUT */ 1149/* #undef HAVE_STRUCT_IPSTAT_IPS_LOCALOUT */ 1150/* #undef HAVE_STRUCT_IPSTAT_IPS_NOPROTO */ 1151/* #undef HAVE_STRUCT_IPSTAT_IPS_NOROUTE */ 1152/* #undef HAVE_STRUCT_IPSTAT_IPS_ODROPPED */ 1153/* #undef HAVE_STRUCT_IPSTAT_IPS_OFRAGMENTS */ 1154/* #undef HAVE_STRUCT_IPSTAT_IPS_REASSEMBLED */ 1155 1156/* vfsstat.f_frsize */ 1157/* #undef HAVE_STRUCT_STATVFS_F_FRSIZE */ 1158 1159/* vfsstat.f_files */ 1160/* #undef HAVE_STRUCT_STATVFS_F_FILES */ 1161 1162/* statfs inode structure tests*/ 1163/* #undef HAVE_STRUCT_STATFS_F_FILES */ 1164/* #undef HAVE_STRUCT_STATFS_F_FFREE */ 1165/* #undef HAVE_STRUCT_STATFS_F_FAVAIL */ 1166 1167/* des_ks_struct.weak_key */ 1168/* #undef HAVE_STRUCT_DES_KS_STRUCT_WEAK_KEY */ 1169 1170/* ifnet needs to have _KERNEL defined */ 1171/* #undef IFNET_NEEDS_KERNEL */ 1172 1173/* sysctl works to get boottime, etc... */ 1174/* #undef NETSNMP_CAN_USE_SYSCTL */ 1175 1176/* type check for in_addr_t */ 1177#define in_addr_t unsigned long 1178 1179/* define if SIOCGIFADDR exists in sys/ioctl.h */ 1180/* #undef SYS_IOCTL_H_HAS_SIOCGIFADDR */ 1181 1182#if defined(_M_PPC) || defined(_M_MPPC) 1183# define NETSNMP_BIGENDIAN 1 1184#elif defined(_M_IX86) || defined(_M_X64) 1185# define NETSNMP_BIGENDIAN 0 1186#else 1187# error Unknown byte order 1188#endif 1189 1190/* Mib-2 tree Info */ 1191/* These are the system information variables. */ 1192 1193#define NETSNMP_VERS_DESC "unknown" /* overridden at run time */ 1194#define NETSNMP_SYS_NAME "unknown" /* overridden at run time */ 1195 1196/* comment out the second define to turn off functionality for any of 1197 these: (See README for details) */ 1198 1199/* proc PROCESSNAME [MAX] [MIN] */ 1200#define NETSNMP_PROCMIBNUM 2 1201 1202/* exec/shell NAME COMMAND */ 1203#define NETSNMP_SHELLMIBNUM 8 1204 1205/* swap MIN */ 1206#define NETSNMP_MEMMIBNUM 4 1207 1208/* disk DISK MINSIZE */ 1209#define NETSNMP_DISKMIBNUM 9 1210 1211/* load 1 5 15 */ 1212#define NETSNMP_LOADAVEMIBNUM 10 1213 1214/* which version are you using? This mibloc will tell you */ 1215#define NETSNMP_VERSIONMIBNUM 100 1216 1217/* Reports errors the agent runs into */ 1218/* (typically its "can't fork, no mem" problems) */ 1219#define NETSNMP_ERRORMIBNUM 101 1220 1221/* The sub id of EXTENSIBLEMIB returned to queries of 1222 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */ 1223#define NETSNMP_AGENTID 250 1224 1225/* This ID is returned after the NETSNMP_AGENTID above. IE, the resulting 1226 value returned by a query to sysObjectID is 1227 EXTENSIBLEMIB.NETSNMP_AGENTID.???, where ??? is defined below by OSTYPE */ 1228 1229#define NETSNMP_HPUX9ID 1 1230#define NETSNMP_SUNOS4ID 2 1231#define NETSNMP_SOLARISID 3 1232#define NETSNMP_OSFID 4 1233#define NETSNMP_ULTRIXID 5 1234#define NETSNMP_HPUX10ID 6 1235#define NETSNMP_NETBSD1ID 7 1236#define NETSNMP_FREEBSDID 8 1237#define NETSNMP_IRIXID 9 1238#define NETSNMP_LINUXID 10 1239#define NETSNMP_BSDIID 11 1240#define NETSNMP_OPENBSDID 12 1241#define NETSNMP_WIN32ID 13 1242#define NETSNMP_HPUX11ID 14 1243#define NETSNMP_UNKNOWNID 255 1244 1245#ifdef hpux9 1246#define OSTYPE NETSNMP_HPUX9ID 1247#endif 1248#ifdef hpux10 1249#define OSTYPE NETSNMP_HPUX10ID 1250#endif 1251#ifdef hpux11 1252#define OSTYPE NETSNMP_HPUX11ID 1253#endif 1254#ifdef sunos4 1255#define OSTYPE NETSNMP_SUNOS4ID 1256#endif 1257#ifdef solaris2 1258#define OSTYPE NETSNMP_SOLARISID 1259#endif 1260#if defined(osf3) || defined(osf4) || defined(osf5) 1261#define OSTYPE NETSNMP_OSFID 1262#endif 1263#ifdef ultrix4 1264#define OSTYPE NETSNMP_ULTRIXID 1265#endif 1266#ifdef netbsd1 1267#define OSTYPE NETSNMP_NETBSD1ID 1268#endif 1269#if defined(__FreeBSD__) 1270#define OSTYPE NETSNMP_FREEBSDID 1271#endif 1272#if defined(irix6) || defined(irix5) 1273#define OSTYPE NETSNMP_IRIXID 1274#endif 1275#ifdef linux 1276#define OSTYPE NETSNMP_LINUXID 1277#endif 1278#if defined(bsdi2) || defined(bsdi3) || defined(bsdi4) 1279#define OSTYPE NETSNMP_BSDIID 1280#endif 1281#ifdef openbsd2 1282#define OSTYPE NETSNMP_OPENBSDID 1283#endif 1284#ifdef WIN32 1285#define OSTYPE NETSNMP_WIN32ID 1286#endif 1287/* unknown */ 1288#ifndef OSTYPE 1289#define OSTYPE NETSNMP_UNKNOWNID 1290#endif 1291 1292/* The enterprise number has been assigned by the IANA group. */ 1293/* Optionally, this may point to the location in the tree your */ 1294/* company/organization has been allocated. */ 1295/* The assigned enterprise number for the NET_SNMP MIB modules. */ 1296#define NETSNMP_ENTERPRISE_OID 8072 1297#define NETSNMP_ENTERPRISE_MIB 1,3,6,1,4,1,8072 1298#define NETSNMP_ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072 1299#define NETSNMP_ENTERPRISE_DOT_MIB_LENGTH 7 1300 1301/* The assigned enterprise number for sysObjectID. */ 1302#define NETSNMP_SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,OSTYPE 1303#define NETSNMP_SYSTEM_DOT_MIB 1.3.6.1.4.1.8072.3.2.OSTYPE 1304#define NETSNMP_SYSTEM_DOT_MIB_LENGTH 10 1305 1306/* The assigned enterprise number for notifications. */ 1307#define NETSNMP_NOTIFICATION_MIB 1,3,6,1,4,1,8072,4 1308#define NETSNMP_NOTIFICATION_DOT_MIB 1.3.6.1.4.1.8072.4 1309#define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH 8 1310 1311/* this is the location of the ucdavis mib tree. It shouldn't be 1312 changed, as the places it is used are expected to be constant 1313 values or are directly tied to the UCD-SNMP-MIB. */ 1314#define NETSNMP_UCDAVIS_OID 2021 1315#define NETSNMP_UCDAVIS_MIB 1,3,6,1,4,1,2021 1316#define NETSNMP_UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021 1317#define NETSNMP_UCDAVIS_DOT_MIB_LENGTH 7 1318 1319/* this is the location of the net-snmp mib tree. It shouldn't be 1320 changed, as the places it is used are expected to be constant 1321 values or are directly tied to the UCD-SNMP-MIB. */ 1322#define NETSNMP_OID 8072 1323#define NETSNMP_MIB 1,3,6,1,4,1,8072 1324#define NETSNMP_DOT_MIB 1.3.6.1.4.1.8072 1325#define NETSNMP_DOT_MIB_LENGTH 7 1326 1327/* how long to wait (seconds) for error querys before reseting the error trap.*/ 1328#define NETSNMP_ERRORTIMELENGTH 600 1329 1330/* Exec command to fix PROC problems */ 1331/* %s will be replaced by the process name in error */ 1332 1333/* #define NETSNMP_PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 1334 1335/* Exec command to fix EXEC problems */ 1336/* %s will be replaced by the exec/script name in error */ 1337 1338/* #define NETSNMP_EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */ 1339 1340/* Should exec output Cashing be used (speeds up things greatly), and 1341 if so, After how many seconds should the cache re-newed? Note: 1342 Don't define CASHETIME to disable cashing completely */ 1343 1344#define NETSNMP_EXCACHETIME 30 1345#define NETSNMP_CACHEFILE ".snmp-exec-cache" 1346#define NETSNMP_MAXCACHESIZE (200*80) /* roughly 200 lines max */ 1347 1348#define MAXDISKS 50 /* can't scan more than this number */ 1349 1350/* misc defaults */ 1351 1352/* default of 100 meg minimum if the minimum size is not specified in 1353 the config file */ 1354#define NETSNMP_DEFDISKMINIMUMSPACE 100000 1355 1356#define NETSNMP_DEFMAXLOADAVE 12.0 /* default maximum load average before error */ 1357 1358/* Because of sleep(1)s, this will also be time to wait (in seconds) for exec 1359 to finish */ 1360#define NETSNMP_MAXREADCOUNT 100 /* max times to loop reading output from execs. */ 1361 1362/* The original CMU code had this hardcoded as = 1 */ 1363#define NETSNMP_SNMPBLOCK 1 /* Set if snmpgets should block and never timeout */ 1364 1365/* How long to wait before restarting the agent after a snmpset to 1366 EXTENSIBLEMIB.NETSNMP_VERSIONMIBNUM.VERRESTARTAGENT. This is 1367 necessary to finish the snmpset reply before restarting. */ 1368#define NETSNMP_RESTARTSLEEP 5 1369 1370/* Number of community strings to store */ 1371#define NETSNMP_NUM_COMMUNITIES 5 1372 1373/* UNdefine to allow specifying zero-length community string */ 1374/* #define NETSNMP_NO_ZEROLENGTH_COMMUNITY 1 */ 1375 1376#define NETSNMP_LASTFIELD -1 /* internal define */ 1377 1378/* configure options specified */ 1379#define NETSNMP_CONFIGURE_OPTIONS "" 1380 1381/* got socklen_t? */ 1382#ifdef HAVE_WIN32_PLATFORM_SDK 1383#define HAVE_SOCKLEN_T 1 1384#endif 1385 1386/* got in_addr_t? */ 1387/* #undef HAVE_IN_ADDR_T */ 1388 1389#ifdef __MINGW32__ 1390/* got ssize_t? */ 1391#define HAVE_SSIZE_T 1392#endif 1393 1394/* If you have openssl 0.9.7 or above, you likely have AES support. */ 1395/* #undef NETSNMP_USE_OPENSSL */ 1396 1397#ifdef NETSNMP_USE_OPENSSL 1398 1399#define HAVE_LIBSSL 1 1400 1401#define HAVE_LIBSSL_DTLS 1 1402 1403#define SECOND_APPVERIFY_COOKIE_CB_ARG_QUALIFIER const 1404 1405/* Define to 1 if you have the <openssl/aes.h> header file. */ 1406#define HAVE_OPENSSL_AES_H 1 1407 1408/* Define to 1 if you have the <openssl/des.h> header file. */ 1409#define HAVE_OPENSSL_DES_H 1 1410 1411/* Define to 1 if you have the <openssl/dh.h> header file. */ 1412#define HAVE_OPENSSL_DH_H 1 1413 1414/* Define to 1 if you have the <openssl/evp.h> header file. */ 1415#define HAVE_OPENSSL_EVP_H 1 1416 1417/* Define to 1 if you have the <openssl/hmac.h> header file. */ 1418#define HAVE_OPENSSL_HMAC_H 1 1419 1420/* Define to 1 if you have the `AES_cfb128_encrypt' function. */ 1421#define HAVE_AES_CFB128_ENCRYPT 1 1422 1423/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */ 1424#define HAVE_ASN1_STRING_GET0_DATA 1 1425 1426/* Define to 1 if you have the `DH_get0_key' function. */ 1427#define HAVE_DH_GET0_KEY 1 1428 1429/* Define to 1 if you have the `DH_get0_pqg' function. */ 1430#define HAVE_DH_GET0_PQG 1 1431 1432/* Define to 1 if you have the `DH_set0_pqg' function. */ 1433#define HAVE_DH_SET0_PQG 1 1434 1435/* Define to 1 if you have the `DTLSv1_method' function. */ 1436#define HAVE_DTLSV1_METHOD 1 1437 1438/* Define to 1 if you have the `DTLS_method' function. */ 1439#define HAVE_DTLS_METHOD 1 1440 1441/* Define to 1 if you have the `EVP_MD_CTX_free' function. */ 1442#define HAVE_EVP_MD_CTX_FREE 1 1443 1444/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 1445#define HAVE_EVP_MD_CTX_NEW 1 1446 1447/* Define to 1 if you have the `EVP_MD_CTX_create' function. */ 1448#define HAVE_EVP_MD_CTX_CREATE 1 1449 1450/* Define to 1 if you have the `EVP_MD_CTX_destroy' function. */ 1451#define HAVE_EVP_MD_CTX_DESTROY 1 1452 1453/* Define if you have EVP_sha224/256 in openssl */ 1454#define HAVE_EVP_SHA224 /**/ 1455 1456/* Define if you have EVP_sha384/512 in openssl */ 1457#define HAVE_EVP_SHA384 /**/ 1458 1459/* Define to 1 if you have the `TLSv1_method' function. */ 1460#define HAVE_TLSV1_METHOD 1 1461 1462/* Define to 1 if you have the `TLS_method' function. */ 1463#define HAVE_TLS_METHOD 1 1464 1465/* Define to 1 if you have the `X509_get_signature_nid' function. */ 1466#define HAVE_X509_GET_SIGNATURE_NID 1 1467 1468/* Define to 1 if you have the `X509_NAME_ENTRY_get_data' function. */ 1469#define HAVE_X509_NAME_ENTRY_GET_DATA 1 1470 1471/* Define to 1 if you have the `X509_NAME_ENTRY_get_object' function. */ 1472#define HAVE_X509_NAME_ENTRY_GET_OBJECT 1 1473 1474#if defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT) 1475#define HAVE_AES 1 1476#endif 1477 1478#else /* ! NETSNMP_USE_OPENSSL */ 1479 1480/* define if you are using the MD5 code ...*/ 1481#define NETSNMP_USE_INTERNAL_MD5 1 1482 1483#endif /* ! NETSNMP_USE_OPENSSL */ 1484 1485 1486/* define signal if DNE */ 1487 1488#ifndef HAVE_SIGNAL 1489#ifdef HAVE_SIGSET 1490#define signal(a,b) sigset(a,b) 1491#endif 1492#endif 1493 1494/* define if you have librpm and libdb */ 1495/* #undef HAVE_LIBDB */ 1496/* #undef HAVE_LIBRPM */ 1497 1498/* define if you have pkginfo */ 1499/* #undef HAVE_PKGINFO */ 1500 1501/* define if you have gethostbyname */ 1502#define HAVE_GETHOSTBYNAME 1 1503 1504/* define if you have gethostbyaddr */ 1505#define HAVE_GETHOSTBYADDR 1 1506 1507/* printing system */ 1508/* #undef HAVE_LPSTAT */ 1509/* #undef LPSTAT_PATH */ 1510/* #undef HAVE_PRINTCAP */ 1511 1512/* Pluggable transports. */ 1513 1514/* This is defined if support for the UDP/IP transport domain is 1515 available. */ 1516#define NETSNMP_TRANSPORT_UDP_DOMAIN 1 1517 1518/* This is defined if support for the "callback" transport domain is 1519 available. */ 1520#define NETSNMP_TRANSPORT_CALLBACK_DOMAIN 1 1521 1522/* This is defined if support for the TCP/IP transport domain is 1523 available. */ 1524#define NETSNMP_TRANSPORT_TCP_DOMAIN 1 1525 1526/* This is defined if support for the Unix transport domain 1527 (a.k.a. "local IPC") is available. */ 1528/* #undef NETSNMP_TRANSPORT_UNIX_DOMAIN */ 1529 1530/* This is defined if support for the AAL5 PVC transport domain is 1531 available. */ 1532/* #undef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN */ 1533 1534/* This is defined if support for the IPX transport domain is 1535 available. */ 1536/* #undef NETSNMP_TRANSPORT_IPX_DOMAIN */ 1537 1538/* XXX do not modify. change the NETSNMP_ENABLE_IPV6 define instead */ 1539/* This is defined if support for the UDP/IPv6 transport domain is 1540 available. */ 1541/* #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN */ 1542 1543/* XXX do not modify. change the NETSNMP_ENABLE_IPV6 define instead */ 1544/* This is defined if support for the TCP/IPv6 transport domain is 1545 available. */ 1546/* #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN */ 1547 1548/* This is defined if support for the Alias transport domain is 1549 available. */ 1550/* #undef NETSNMP_TRANSPORT_ALIAS_DOMAIN */ 1551 1552/* This is defined if support for the SSH transport domain is 1553 available. */ 1554/* #undef NETSNMP_TRANSPORT_SSH_DOMAIN */ 1555 1556#ifdef NETSNMP_USE_OPENSSL 1557 1558/* This is defined if support for the TLS transport domain is 1559 available. */ 1560#define NETSNMP_TRANSPORT_TLSBASE_DOMAIN 1 1561 1562/* This is defined if support for the DTLS/UDP transport domain is 1563 available. */ 1564#define NETSNMP_TRANSPORT_DTLSUDP_DOMAIN 1 1565 1566/* This is defined if support for the TLS/TCP transport domain is 1567 available. */ 1568#define NETSNMP_TRANSPORT_TLSTCP_DOMAIN 1 1569 1570#endif 1571 1572/* This is defined if support for stdin/out transport domain is available. */ 1573/* #undef NETSNMP_TRANSPORT_STD_DOMAIN */ 1574 1575/* This is defined if support for the IPv4Base transport domain is available. */ 1576#define NETSNMP_TRANSPORT_IPV4BASE_DOMAIN 1 1577 1578/* define this if the USM security module is available */ 1579#define NETSNMP_SECMOD_USM 1 1580 1581/* define this if the KSM (kerberos based snmp) security module is available */ 1582/* #undef NETSNMP_SECMOD_KSM */ 1583 1584/* define this if we're using the new MIT crypto API */ 1585/* #undef NETSNMP_USE_KERBEROS_MIT */ 1586 1587/* define if you want to build with reentrant/threaded code (incomplete)*/ 1588/* #undef NETSNMP_REENTRANT */ 1589 1590/* on aix, if you have perfstat */ 1591/* #undef HAVE_PERFSTAT */ 1592 1593/* Not-to-be-compiled macros for use by configure only */ 1594#define config_require(x) 1595#define config_version_require(x) 1596#define config_warning(x) 1597#define config_error(x) 1598#define config_exclude(x) 1599#define config_arch_require(x,y) 1600#define config_parse_dot_conf(w,x,y,z) 1601#define config_add_mib(x) 1602#define config_belongs_in(x) 1603 1604#if defined (WIN32) 1605#define ENV_SEPARATOR ";" 1606#define ENV_SEPARATOR_CHAR ';' 1607#else 1608#define ENV_SEPARATOR ":" 1609#define ENV_SEPARATOR_CHAR ':' 1610#endif 1611 1612/* 1613 * this must be before the system/machine includes, to allow them to 1614 * override and turn off inlining. To do so, they should do the 1615 * following: 1616 * 1617 * #undef NETSNMP_ENABLE_INLINE 1618 * #define NETSNMP_ENABLE_INLINE 0 1619 * 1620 * A user having problems with their compiler can also turn off 1621 * the use of inline by defining NETSNMP_NO_INLINE via their cflags: 1622 * 1623 * -DNETSNMP_NO_INLINE 1624 * 1625 * Header and source files should only test against NETSNMP_USE_INLINE: 1626 * 1627 * #ifdef NETSNMP_USE_INLINE 1628 * NETSNMP_INLINE function(int parm) { return parm -1; } 1629 * #endif 1630 * 1631 * Functions which should be static, regardless of whether or not inline 1632 * is available or enabled should use the NETSNMP_STATIC_INLINE macro, 1633 * like so: 1634 * 1635 * NETSNMP_STATIC_INLINE function(int parm) { return parm -1; } 1636 * 1637 * NOT like this: 1638 * 1639 * static NETSNMP_INLINE function(int parm) { return parm -1; } 1640 * 1641 */ 1642/* 1643 * Win32 needs extern for inline function declarations in headers. 1644 * See MS tech note Q123768: 1645 * http://support.microsoft.com/default.aspx?scid=kb;EN-US;123768 1646 */ 1647#define NETSNMP_INLINE extern inline 1648#define NETSNMP_STATIC_INLINE static inline 1649#define NETSNMP_ENABLE_INLINE 1 1650 1651#if notused 1652#include NETSNMP_SYSTEM_INCLUDE_FILE 1653#include NETSNMP_MACHINE_INCLUDE_FILE 1654#endif 1655 1656#include <winsock2.h> 1657#include <ws2tcpip.h> 1658 1659#if NETSNMP_ENABLE_INLINE && !defined(NETSNMP_NO_INLINE) 1660# define NETSNMP_USE_INLINE 1 1661#else 1662# undef NETSNMP_INLINE 1663# define NETSNMP_INLINE 1664# undef NETSNMP_STATIC_INLINE 1665# define NETSNMP_STATIC_INLINE static 1666#endif 1667 1668#ifdef WIN32 1669 1670#ifndef __MINGW32__ 1671typedef unsigned short mode_t; 1672#endif 1673#ifndef HAVE_STDINT_H 1674typedef unsigned char uint8_t; 1675typedef char int8_t; 1676typedef unsigned __int16 uint16_t; 1677typedef __int16 int16_t; 1678typedef unsigned __int32 uint32_t; 1679typedef __int32 int32_t; 1680typedef unsigned __int64 uint64_t; 1681typedef __int64 int64_t; 1682typedef unsigned __int64 uintmax_t; 1683typedef __int64 intmax_t; 1684#else /* HAVE_STDINT_H */ 1685#include <stdint.h> 1686#endif /* HAVE_STDINT_H */ 1687 1688 1689/* (u)intptr_t should only be needed for MSVC 6 32-bit. */ 1690/* SDK has it for 64-bit and newer MSVC should also have it in stddef.h. */ 1691#ifndef _INTPTR_T_DEFINED 1692#ifdef _M_X64 1693typedef __int64 intptr_t; 1694#else 1695typedef int intptr_t; 1696#endif 1697#define _INTPTR_T_DEFINED 1698#endif 1699 1700#ifndef _UINTPTR_T_DEFINED 1701#ifdef _M_X64 1702typedef unsigned __int64 uintptr_t; 1703#else 1704typedef unsigned int uintptr_t; 1705#endif 1706#define _UINTPTR_T_DEFINED 1707#endif 1708 1709#ifndef __cplusplus 1710#ifdef _MSC_VER 1711#pragma warning(push) 1712#pragma warning(disable: 4804) // '-' : unsafe use of type 'bool' in operation 1713#endif 1714enum { 1715 netsnmp_compile_time_uintptr_t_size_check 1716 = sizeof(struct netsnmp_compile_time_uintptr_t_size_check_s { int:-!(sizeof(uintptr_t) == sizeof(void*)); }) 1717}; 1718#ifdef _MSC_VER 1719#pragma warning(pop) 1720#endif 1721#endif 1722 1723/* Define if you have the closesocket function. */ 1724#define HAVE_CLOSESOCKET 1 1725 1726/* define to 1 if you do not want to set global snmp_errno */ 1727#define DONT_SHARE_ERROR_WITH_OTHER_THREADS 1 1728 1729/* Defining vsnprintf is not necessary for MSVC 2008 or later */ 1730#if defined(_MSC_VER) && _MSC_VER < 1500 1731#define vsnprintf _vsnprintf 1732#endif 1733#if defined(_MSC_VER) && _MSC_VER < 1900 1734#define snprintf _snprintf 1735#endif 1736 1737#if defined(_MSC_VER) && _MSC_VER < 1600 1738#define EADDRINUSE WSAEADDRINUSE 1739#endif 1740 1741/* Define NETSNMP_USE_DLL when building or using netsnmp.DLL */ 1742/* #undef NETSNMP_USE_DLL */ 1743 1744#if defined(NETSNMP_DLL) && !defined(NETSNMP_USE_DLL) 1745#error NETSNMP_USE_DLL must be defined when building libsnmp as a DLL. 1746#endif 1747 1748/* 1749 * DLL decoration, if used at all, must be consistent. 1750 * This is why NETSNMP_IMPORT is really an export decoration 1751 * when it is encountered in a header file that is included 1752 * during the compilation of a library source file. 1753 * NETSNMP_DLL is set by the MSVC libsnmp_dll project 1754 * in order to signal that the library sources are being compiled. 1755 * Not defining NETSNMP_USE_DLL ignores the preceding, and renders 1756 * the NETSNMP_IMPORT definitions harmless. 1757 */ 1758 1759#ifdef NETSNMP_USE_DLL 1760 #ifdef NETSNMP_DLL 1761 #if defined(_MSC_VER) 1762 #define NETSNMP_IMPORT extern __declspec(dllexport) 1763 #endif 1764 #else 1765 #if defined(_MSC_VER) 1766 #define NETSNMP_IMPORT extern __declspec(dllimport) 1767 #endif 1768 #endif /* NETSNMP_DLL */ 1769#endif /* NETSNMP_USE_DLL */ 1770 1771/* MSVC OpenSSL linker settings. */ 1772#if defined(_MSC_VER) 1773# if defined(NETSNMP_USE_OPENSSL) 1774# ifdef _DLL 1775# ifdef _DEBUG 1776# ifdef OPENSSL_BEFORE_1_1_0 1777# pragma comment(lib, "libeay32MDd.lib") 1778# else 1779# ifdef _M_X64 1780# pragma comment(lib, "libcrypto64MDd.lib") 1781# pragma comment(lib, "libssl64MDd.lib") 1782# else 1783# pragma comment(lib, "libcrypto32MDd.lib") 1784# pragma comment(lib, "libssl32MDd.lib") 1785# endif 1786# endif 1787# else 1788# ifdef OPENSSL_BEFORE_1_1_0 1789# pragma comment(lib, "libeay32MD.lib") 1790# else 1791# ifdef _M_X64 1792# pragma comment(lib, "libcrypto64MD.lib") 1793# pragma comment(lib, "libssl64MD.lib") 1794# else 1795# pragma comment(lib, "libcrypto32MD.lib") 1796# pragma comment(lib, "libssl32MD.lib") 1797# endif 1798# endif 1799# endif 1800# else 1801# ifdef _DEBUG 1802# ifdef OPENSSL_BEFORE_1_1_0 1803# pragma comment(lib, "libeay32MTd.lib") 1804# else 1805# ifdef _M_X64 1806# pragma comment(lib, "libcrypto64MTd.lib") 1807# pragma comment(lib, "libssl64MTd.lib") 1808# else 1809# pragma comment(lib, "libcrypto32MTd.lib") 1810# pragma comment(lib, "libssl32MTd.lib") 1811# endif 1812# endif 1813# else 1814# ifdef OPENSSL_BEFORE_1_1_0 1815# pragma comment(lib, "libeay32MT.lib") 1816# else 1817# ifdef _M_X64 1818# pragma comment(lib, "libcrypto64MT.lib") 1819# pragma comment(lib, "libssl64MT.lib") 1820# else 1821# pragma comment(lib, "libcrypto32MT.lib") 1822# pragma comment(lib, "libssl32MT.lib") 1823# endif 1824# endif 1825# endif 1826# endif 1827# pragma comment(lib, "gdi32.lib") 1828# pragma comment(lib, "user32.lib") 1829# endif 1830#endif 1831 1832#endif /* WIN32 */ 1833 1834#ifndef NETSNMP_IMPORT 1835# define NETSNMP_IMPORT extern 1836#endif 1837 1838#if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NETSNMP_NO_KMEM_USAGE) 1839#define NETSNMP_CAN_USE_NLIST 1840#endif 1841 1842#if HAVE_DMALLOC_H 1843#define DMALLOC_FUNC_CHECK 1844#endif 1845 1846#define NETSNMP_NO_SYSTEMD 1847 1848/* #undef NETSNMP_ENABLE_LOCAL_SMUX */ 1849 1850/* define if agentx transport is to use domain sockets only */ 1851/* #undef NETSNMP_AGENTX_DOM_SOCK_ONLY */ 1852 1853#ifdef UCD_COMPATIBLE 1854/* old and in the way */ 1855#define EXTENSIBLEMIB NETSNMP_UCDAVIS_MIB 1856#endif 1857 1858#ifdef _MSC_VER 1859/* Windows Vista and higher have inet_ntop but older Windows does not. 1860 * We'll use the Net-SNMP version instead. */ 1861#undef HAVE_INET_NTOP 1862#undef HAVE_INET_PTON 1863 1864/* IPv6 transports */ 1865#ifdef NETSNMP_ENABLE_IPV6 1866 #define NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 1 1867 #define NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 1 1868 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 1869#else 1870 #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 1871 #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 1872#endif 1873#endif 1874 1875/* 1876 * Although if_nametoindex() is available on Windows Vista, Windows Server 1877 * 2008 and later in iphlpapi.dll, do not link with if_nametoindex() such 1878 * that the Net-SNMP executable can be started on earlier Windows versions. 1879 */ 1880#undef HAVE_IF_NAMETOINDEX 1881 1882#ifndef NI_MAXHOST 1883#define NI_MAXHOST 1025 1884#endif 1885 1886/* Define to 1 if you have the `strtoull' function. */ 1887#if _MSC_VER >= 1800 1888#define HAVE_STRTOULL 1 1889#else 1890/* #undef HAVE_STRTOULL */ 1891#endif 1892 1893/* 1894 * Module configuration and control starts here. 1895 * 1896 * Some of the defines herein are used to control 1897 * groups of modules. The ones that have "CFG" 1898 * are used especially to control the include files 1899 * seen in {agent,mib}_module_includes.h, and the init entries 1900 * which are invoked in {agent,mib}_module_inits.h. 1901 * 1902 * To disable a group, uncomment the associated define. 1903 */ 1904 1905/* CFG Define if compiling with the ucd_snmp module files. */ 1906#define USING_UCD_SNMP_MODULE 1 1907 1908/* CFG Define if compiling with the agentx module files. */ 1909#define USING_AGENTX_MODULE 1 1910 1911/* CFG Define if compiling with the host module files. */ 1912/* #undef USING_HOST_MODULE */ 1913 1914/* CFG Define if compiling with the Rmon module files. */ 1915/* #undef USING_RMON_MODULE */ 1916 1917/* CFG Define if compiling with the disman/event-mib module files. */ 1918#define USING_DISMAN_EVENT_MIB_MODULE 1 1919 1920/* CFG Define if compiling with the smux module files. */ 1921/* #undef USING_SMUX_MODULE */ 1922 1923/* Define if compiling with the winExtDLL module. */ 1924/* #undef USING_WINEXTDLL_MODULE */ 1925 1926/* 1927 * Module configuration and control ends here. 1928 */ 1929#define UDP_ADDRESSES_IN_HOST_ORDER 1 1930 1931/* Timeout in milliseconds for Win32 function WaitForSingleObject. 1932 Used by agent pass. */ 1933#define NETSNMP_TIMEOUT_WAITFORSINGLEOBJECT 5000 1934 1935#ifdef HAVE_WIN32_PLATFORM_SDK 1936#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 1937#endif 1938 1939#ifdef _MSC_VER 1940#ifdef _WIN64 1941#define NETSNMP_PRIz "I64" 1942#else 1943#define NETSNMP_PRIz "" 1944#endif 1945#endif 1946 1947#endif /* NET_SNMP_CONFIG_H */ 1948 1949