Tell adns (via ADNS_FEATURE_MANYAF) that we want mixed address
families in the results, and handle any IPv6 addresses we find.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
case AF_INET:
assert(ra->len == sizeof(ca->ia.sin));
break;
+#ifdef CONFIG_IPV6
+ case AF_INET6:
+ assert(ra->len == sizeof(ca->ia.sin6));
+ break;
+#endif /*CONFIG_IPV6*/
default:
/* silently skip unexpected AFs from adns */
continue;
#ifndef secnet_h
#define secnet_h
+#define ADNS_FEATURE_MANYAF
+
#include "config.h"
#include <stdlib.h>
#include <stdarg.h>