summaryrefslogtreecommitdiffstats
path: root/include/comms.h
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-09-17 09:35:13 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-09-17 09:35:13 +0000
commit2ae95f35e566afdee93ea06bbf02443257ce7716 (patch)
tree0eddf35ca439ddc34473ffe97fce4615705017ad /include/comms.h
parentcb2c5743fee519c1490317552b98a09f48daf92a (diff)
downloadzabbix-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/comms.h')
-rw-r--r--include/comms.h3
1 files changed, 2 insertions, 1 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);