diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/comms.h | 3 | ||||
| -rw-r--r-- | include/db.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/comms.h b/include/comms.h index 50ecde1f..29fe4f69 100644 --- a/include/comms.h +++ b/include/comms.h @@ -32,6 +32,7 @@ typedef enum { typedef int ZBX_SOCKET; #endif /* SOCKET || _WINDOWS */ + typedef struct sockaddr_in ZBX_SOCKADDR; typedef enum @@ -59,7 +60,7 @@ int zbx_tcp_error(void); struct hostent *zbx_gethost(const char *hostname); #if !defined(_WINDOWS) -struct hostent *zbx_gethost_by_ip(const char *ip); +void zbx_gethost_by_ip(const char *ip, char *host, size_t hostlen); #endif /* WINDOWS */ void zbx_tcp_init(zbx_sock_t *s, ZBX_SOCKET o); diff --git a/include/db.h b/include/db.h index e2937c57..f8a371af 100644 --- a/include/db.h +++ b/include/db.h @@ -104,7 +104,7 @@ typedef enum { #define MAX_HOST_HOST_LEN 64 #define MAX_ITEM_KEY_LEN 255 -#define MAX_ITEM_IP_LEN 15 +#define MAX_ITEM_IP_LEN 39 #define MAX_ITEM_SNMP_COMMUNITY_LEN 64 #define MAX_ITEM_SNMP_OID_LEN 255 @@ -127,7 +127,7 @@ typedef enum { #define HOST_HOST_LEN_MAX HOST_HOST_LEN+1 #define HOST_DNS_LEN 64 #define HOST_DNS_LEN_MAX HOST_DNS_LEN+1 -#define HOST_IP_LEN 15 +#define HOST_IP_LEN 39 #define HOST_IP_LEN_MAX HOST_IP_LEN+1 #define HOST_ERROR_LEN 128 #define HOST_ERROR_LEN_MAX HOST_ERROR_LEN+1 |
