mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-21 18:10:37 -04:00
Print the actual ipv4-in-ipv6 mapped address we ignore when we ignore it.
This commit is contained in:
parent
e6aae9483e
commit
7c82f6f2e3
1 changed files with 18 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue