X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/69cb46af9119e8b5554bcc4bf1bf36f39cb82131..refs/pull/471/head:/print-lwres.c diff --git a/print-lwres.c b/print-lwres.c index 90a6866a..7dea0335 100644 --- a/print-lwres.c +++ b/print-lwres.c @@ -31,16 +31,16 @@ #include "config.h" #endif -#include +#include #include "nameser.h" #include #include -#include "interface.h" +#include "netdissect.h" #include "addrtoname.h" -#include "extract.h" /* must come after interface.h */ +#include "extract.h" /* BIND9 lib/lwres/include/lwres */ typedef uint32_t lwres_uint32_t; @@ -268,14 +268,12 @@ lwres_printaddr(netdissect_options *ndo, ND_PRINT((ndo, " %s", ipaddr_string(ndo, p))); p += sizeof(struct in_addr); break; -#ifdef INET6 case 2: /* IPv6 */ if (l < 16) return -1; ND_PRINT((ndo, " %s", ip6addr_string(ndo, p))); p += sizeof(struct in6_addr); break; -#endif default: ND_PRINT((ndo, " %u/", EXTRACT_32BITS(&ap->family))); for (i = 0; i < l; i++)