#endif
#endif
+/* Defined in ares_net_pton.c for no particular reason. */
+extern const struct ares_in6_addr ares_in6addr_any; /* :: */
+
+
#endif /* ARES_IPV6_H */
int ares_set_servers_csv(ares_channel channel,
const char* _csv)
{
- struct ares_addr_node *srvr;
- int num_srvrs = 0;
int i;
char* csv = NULL;
char* ptr;
csv[i+1] = 0;
}
- ptr = csv;
start_host = csv;
found_port = false;
- for (ptr; *ptr; ptr++) {
+ for (ptr = csv; *ptr; ptr++) {
if (*ptr == ',') {
char* pp = ptr - 1;
struct in_addr in4;
}
}
else if (family == AF_INET6) {
- if (memcmp(channel->local_ip6, &in6addr_any, sizeof(channel->local_ip6)) != 0) {
+ if (memcmp(channel->local_ip6, &ares_in6addr_any, sizeof(channel->local_ip6)) != 0) {
struct sockaddr_in6 sa;
memset(&sa, 0, sizeof(sa));
sa.sin6_family = AF_INET6;
#include "ares_ipv6.h"
#include "inet_net_pton.h"
+
+const struct ares_in6_addr ares_in6addr_any = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } };
+
+
#if !defined(HAVE_INET_NET_PTON) || !defined(HAVE_INET_NET_PTON_IPV6)
/*