diff --git a/bin/named/interfacemgr.c b/bin/named/interfacemgr.c index 8e9f98bbdf..fa8f0ca72e 100644 --- a/bin/named/interfacemgr.c +++ b/bin/named/interfacemgr.c @@ -117,7 +117,8 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr, * Open a UDP socket. */ ifp->udpsocket = NULL; - iresult = isc_socket_create(mgr->socketmgr, isc_sockettype_udp, + iresult = isc_socket_create(mgr->socketmgr, PF_INET, + isc_sockettype_udp, &ifp->udpsocket); if (iresult != ISC_R_SUCCESS) { UNEXPECTED_ERROR(__FILE__, __LINE__, @@ -147,7 +148,8 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr, * Open a TCP socket. */ ifp->tcpsocket = NULL; - iresult = isc_socket_create(mgr->socketmgr, isc_sockettype_tcp, + iresult = isc_socket_create(mgr->socketmgr, PF_INET, + isc_sockettype_tcp, &ifp->tcpsocket); if (iresult != ISC_R_SUCCESS) { UNEXPECTED_ERROR(__FILE__, __LINE__, diff --git a/bin/tests/dispatch_tcp_test.c b/bin/tests/dispatch_tcp_test.c index af6258b3ac..991881eb03 100644 --- a/bin/tests/dispatch_tcp_test.c +++ b/bin/tests/dispatch_tcp_test.c @@ -384,7 +384,8 @@ main(int argc, char *argv[]) sockaddr.type.sin.sin_family = AF_INET; sockaddr.type.sin.sin_port = htons(5555); sockaddr.length = sizeof (struct sockaddr_in); - RUNTIME_CHECK(isc_socket_create(socketmgr, isc_sockettype_tcp, &s0) == + RUNTIME_CHECK(isc_socket_create(socketmgr, PF_INET, + isc_sockettype_tcp, &s0) == ISC_R_SUCCESS); RUNTIME_CHECK(isc_socket_bind(s0, &sockaddr) == ISC_R_SUCCESS); RUNTIME_CHECK(isc_socket_listen(s0, 0) == ISC_R_SUCCESS); diff --git a/bin/tests/dispatch_test.c b/bin/tests/dispatch_test.c index 819c888e6b..3ef6685f18 100644 --- a/bin/tests/dispatch_test.c +++ b/bin/tests/dispatch_test.c @@ -354,7 +354,8 @@ main(int argc, char *argv[]) sockaddr.type.sin.sin_family = AF_INET; sockaddr.type.sin.sin_port = htons(5555); sockaddr.length = sizeof (struct sockaddr_in); - RUNTIME_CHECK(isc_socket_create(socketmgr, isc_sockettype_udp, &s0) == + RUNTIME_CHECK(isc_socket_create(socketmgr, PF_INET, + isc_sockettype_udp, &s0) == ISC_R_SUCCESS); RUNTIME_CHECK(isc_socket_bind(s0, &sockaddr) == ISC_R_SUCCESS);