From 7c82f6f2e34cd7ee66a60f8b3dcfec27126774e4 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Thu, 25 May 2000 21:08:06 +0000 Subject: [PATCH] Print the actual ipv4-in-ipv6 mapped address we ignore when we ignore it. --- lib/dns/adb.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index b0ffa56415..f304d1d50a 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -477,7 +477,15 @@ import_rdataset(dns_adbname_t *adbname, dns_rdataset_t *rdataset, if (IN6_IS_ADDR_V4MAPPED(&sockaddr.type.sin6.sin6_addr) || IN6_IS_ADDR_V4COMPAT(&sockaddr.type.sin6.sin6_addr)) { - DP(1, "Ignoring IPv6 mapped IPv4 address"); + isc_buffer_t buffer; + char buff[80]; + + isc_buffer_init(&buffer, buff, sizeof buff); + isc_sockaddr_totext(&sockaddr, &buffer); + + DP(1, "Ignoring IPv6 mapped IPv4 address: %*s", + isc_buffer_usedlength(&buffer), + isc_buffer_base(&buffer)); goto next; } @@ -583,7 +591,15 @@ import_a6(dns_a6context_t *a6ctx) { if (IN6_IS_ADDR_V4MAPPED(&sockaddr.type.sin6.sin6_addr) || IN6_IS_ADDR_V4COMPAT(&sockaddr.type.sin6.sin6_addr)) { - DP(1, "Ignoring IPv6 mapped IPv4 address"); + isc_buffer_t buffer; + char buff[80]; + + isc_buffer_init(&buffer, buff, sizeof buff); + isc_sockaddr_totext(&sockaddr, &buffer); + + DP(1, "Ignoring IPv6 mapped IPv4 address: %*s", + isc_buffer_usedlength(&buffer), + isc_buffer_base(&buffer)); goto fail; }