diff options
| author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-09-17 09:35:13 +0000 |
|---|---|---|
| committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-09-17 09:35:13 +0000 |
| commit | 2ae95f35e566afdee93ea06bbf02443257ce7716 (patch) | |
| tree | 0eddf35ca439ddc34473ffe97fce4615705017ad /include | |
| parent | cb2c5743fee519c1490317552b98a09f48daf92a (diff) | |
| download | zabbix-2ae95f35e566afdee93ea06bbf02443257ce7716.tar.gz zabbix-2ae95f35e566afdee93ea06bbf02443257ce7716.tar.xz zabbix-2ae95f35e566afdee93ea06bbf02443257ce7716.zip | |
[DEV-23] improvements in configure.in IPv6 (Sasha)
[DEV-23] Autodiscovery for IPv6 (Sasha)
[DEV-17] Add support of IPv6 to standard library (comms.c) (Sasha)
[DEV-21] extended size of IP fields to accept IPv6 style IPs (Alexei)
[DEV-21] added basic validation of IPv6 IP addresses in GUI (Alexei)
[DEV-18] Modified structures of include/db.h to have larger length for IP addresses.
[DEV-18] database schema enhanced for IPv6 addresses (Alexei)
Minor fix for confgure.in.
support of --enable-ipv6 for configure.in (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@4752 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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 |
