#include #ifdef HAVE_GETADDRINFO #include #include #include #endif /* HAVE_GETADDRINFO */ #include #include /* * defines * MAX_STRING = allocate memory for this length of output string */ #define MAX_STRING 65536 #define MAX_DESCR_LEN 60 #define UPTIME_TOLERANCE_IN_SECS 30 #define OFLO32 4294967295ULL #define OFLO64 18446744073709551615ULL /* default timeout is 30s */ #define DFLT_TIMEOUT 30000000UL /* should a timeout return critical(2) or unknown(3)? */ #define EXITCODE_TIMEOUT 3 #define MEMCPY(a, b, c) memcpy(a, b, (sizeof(a)>c)?c:sizeof(a)) #define TERMSTR(a, b) a[(((sizeof(a)-1)