diff src/dns.h @ 33:9cfe920dca2e

Switched dns.c from gethostbyname* to getaddrinfo.
author jcid
date Mon, 05 Nov 2007 16:42:55 +0100
parents 6ee11bf9e3ea
children 03f9a7877a2e
line wrap: on
line diff
--- a/src/dns.h	Mon Nov 05 13:49:20 2007 +0100
+++ b/src/dns.h	Mon Nov 05 16:42:55 2007 +0100
@@ -1,6 +1,8 @@
 #ifndef __DNS_H__
 #define __DNS_H__
 
+#include <netinet/in.h>
+
 #include "chain.h"
 
 #ifdef __cplusplus
@@ -14,7 +16,7 @@
 void a_Dns_freeall(void);
 void a_Dns_resolve(const char *hostname, DnsCallback_t cb_func, void *cb_data);
 
-#define DILLO_ADDR_MAX 16
+#define DILLO_ADDR_MAX sizeof(struct in6_addr)
 
 typedef struct _DilloHost
 {