mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 00:40:01 -04:00
Visual Studio 2005 doesn't like named elements, construct addr using isc_netaddr_fromin6
This commit is contained in:
parent
5cc4be4275
commit
e7d1e4daad
1 changed files with 4 additions and 5 deletions
|
|
@ -2077,11 +2077,10 @@ static isc_result_t
|
|||
create_mapped_acl(void) {
|
||||
isc_result_t result;
|
||||
dns_acl_t *acl = NULL;
|
||||
isc_netaddr_t addr = {
|
||||
.family = AF_INET6,
|
||||
.type.in6 = IN6ADDR_V4MAPPED_INIT,
|
||||
.zone = 0
|
||||
};
|
||||
struct in6_addr in6 = IN6ADDR_V4MAPPED_INIT;
|
||||
isc_netaddr_t addr;
|
||||
|
||||
isc_netaddr_fromin6(&addr, &in6);
|
||||
|
||||
result = dns_acl_create(ns_g_mctx, 1, &acl);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue