mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
isc_socket_create() API update
This commit is contained in:
@@ -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__,
|
||||
|
Reference in New Issue
Block a user