#if HAVE_STDLIB_H #include #endif #if HAVE_UNISTD_H #include #endif #if HAVE_STRING_H #include #else #include #endif #include #if HAVE_SYS_PARAM_H #include #endif #if HAVE_NETINET_IN_H #include #endif #if HAVE_SYS_SYSMP_H #include #endif #if HAVE_SYS_TCPIPSTATS_H #include #endif #if defined(NETSNMP_IFNET_NEEDS_KERNEL) && !defined(_KERNEL) #define _KERNEL 1 #define _I_DEFINED_KERNEL #endif #if HAVE_SYS_SOCKET_H #include #endif #if HAVE_NET_IF_H #ifdef _I_DEFINED_KERNEL #undef _KERNEL #endif #include #ifdef _I_DEFINED_KERNEL #define _KERNEL 1 #endif #endif #if HAVE_NET_IF_VAR_H #include #endif #ifdef _I_DEFINED_KERNEL #undef _KERNEL #endif #if HAVE_SYS_SYSCTL_H #include #endif #if HAVE_SYS_STREAM_H #include #endif #if HAVE_NET_ROUTE_H #include #endif #if HAVE_NETINET_IN_SYSTM_H #include #endif #if HAVE_NETINET_IP_H #include #endif #if HAVE_SYS_QUEUE_H #include #endif /* IRIX 6.5 build breaks on sys/socketvar.h because _KMEMUSER brings in sys/pda.h which doesn't compile */ #ifndef irix6 #if HAVE_SYS_SOCKETVAR_H #include #endif #endif /* irix6 */ #if HAVE_NETINET_IP_VAR_H #include #endif #ifdef NETSNMP_ENABLE_IPV6 #if HAVE_NETNETSNMP_ENABLE_IPV6_IP6_VAR_H #include #endif #endif #if HAVE_NETINET_IN_PCB_H #include #endif #if HAVE_INET_MIB2_H #include #endif #ifdef HAVE_STDINT_H #include #endif #ifdef solaris2 #include "kernel_sunos5.h" #else #include "kernel.h" #endif #ifdef linux #include "kernel_linux.h" #endif #ifdef NETBSD_STATS_VIA_SYSCTL #include "kernel_netbsd.h" #endif #if defined(NETSNMP_CAN_USE_SYSCTL) /* && defined(ICMPCTL_STATS) */ #include "kernel_sysctl.h" #endif /* or MIB_xxxCOUNTER_SYMBOL || hpux11 */ #ifdef hpux #include #include #endif #ifdef cygwin #include #endif