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

Add IPv6 support

This commit is contained in:
Mark Andrews
2000-01-18 05:42:53 +00:00
parent ccb185b942
commit 5e2b6219d2

View File

@@ -59,7 +59,12 @@ get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src) {
&((struct sockaddr_in *) src)->sin_addr,
sizeof(struct in_addr));
break;
/* XXX IPv6 */
case AF_INET6:
memcpy(&dst->type.in6,
&((struct sockaddr_in6 *) src)->sin6_addr,
sizeof(struct in6_addr));
break;
break;
default:
INSIST(0);
break;