2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Print the actual ipv4-in-ipv6 mapped address we ignore when we ignore it.

This commit is contained in:
Michael Graff
2000-05-25 21:08:06 +00:00
parent e6aae9483e
commit 7c82f6f2e3

View File

@@ -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;
}