28 #ifndef _CONFIG_SNMP_PP_H_ 29 #define _CONFIG_SNMP_PP_H_ 31 #ifndef __LIBSNMP_H_INCLUDED__ 35 #define SNMP_PP_VERSION_STRING "3.3.10" 36 #define SNMP_PP_VERSION 3 37 #define SNMP_PP_RELEASE 3 38 #define SNMP_PP_PATCHLEVEL 10 41 #define MAX_SNMP_PACKET 4096 44 #if defined (WIN32) && defined (SNMP_PP_DLL) 45 #ifdef SNMP_PP_EXPORTS 46 #define DLLOPT __declspec(dllexport) 49 #define DLLOPT __declspec(dllimport) 50 #define DLLOPT_TEMPL extern 67 #define SNMP_PP_IPv6 1 70 #define ENABLE_THREADS 1 78 #define HAVE_LIBTOMCRYPT 1 84 #define HAVE_PTHREAD 1 89 #define SNMP_PP_NAMESPACE 91 #undef SNMP_PP_NAMESPACE 99 #if defined(_SNMPv3) || !defined(_NO_SNMPv3) 100 # if defined(HAVE_LIBSSL) 101 # define _USE_OPENSSL 102 # elif defined(HAVE_LIBTOMCRYPT) 103 # define _USE_LIBTOMCRYPT 105 # define _USE_3DES_EDE 107 # warn No crypto library found - disable SNMPv3 122 #ifndef WITHOUT_LOG_PROFILES 123 #define WITH_LOG_PROFILES 1 126 #undef WITH_LOG_PROFILES 143 #define SNMP_BROADCAST 146 #if !(defined (CPU) && CPU == PPC603) && (defined __GNUC__ || defined __FreeBSD__ || defined _AIX) && ! defined __MINGW32__ 168 #define HAVE_REENTRANT_LOCALTIME 169 #define HAVE_REENTRANT_GETHOSTBYADDR 170 #define HAVE_REENTRANT_GETHOSTBYNAME 175 #define HAVE_REENTRANT_GETHOSTBYNAME 176 #define HAVE_REENTRANT_LOCALTIME 177 #define HAVE_REENTRANT_GETHOSTBYADDR 179 #define HAVE_REENTRANT_GETHOSTBYNAME 180 #define HAVE_REENTRANT_GETHOSTBYADDR 182 #define HAVE_REENTRANT_GETHOSTBYNAME 183 #define HAVE_REENTRANT_GETHOSTBYADDR 185 #define HAVE_REENTRANT_GETHOSTBYNAME 186 #define HAVE_REENTRANT_LOCALTIME 187 #define HAVE_REENTRANT_GETHOSTBYADDR 189 #define HAVE_REENTRANT_GETHOSTBYNAME 190 #define HAVE_REENTRANT_GETHOSTBYADDR 196 #if defined(HAVE_WINSOCK2_H) 197 #include <winsock2.h> 198 #elif defined(HAVE_WINSOCK_H) 201 #ifdef HAVE_WSTCPIP_H 202 #include <ws2tcpip.h> 204 #ifdef HAVE_WSPIAPI_H 207 #ifdef __BCPLUSPLUS__ 226 #ifdef HAVE_POLL_SYSCALL 230 #define SNMP_PP_DEFAULT_SNMP_PORT 161 // standard port # for SNMP 231 #define SNMP_PP_DEFAULT_SNMP_TRAP_PORT 162 // standard port # for SNMP traps 240 #define SNMP_PP_MUTABLE 242 #define SAFE_INT_CAST(expr) ((int)(expr)) 243 #define SAFE_UINT_CAST(expr) ((unsigned int)(expr)) 246 #define SAFE_LONG_CAST(expr) ((long)(expr)) 247 #define SAFE_ULONG_CAST(expr) ((unsigned long)(expr)) 249 #ifdef ENABLE_THREADS 253 #define _WIN32THREADS 270 #ifndef POSIX_THREADS 272 #define POSIX_THREADS 280 #endif // ENABLE_THREADS 283 #ifndef _WIN32THREADS 289 #endif // _CONFIG_SNMP_PP_H_ struct sockaddr_storage SocketAddrType
unsigned long long pp_uint64