diff --git a/bin/tests/test_server.c b/bin/tests/test_server.c index 3ff507c28c..05acf8430a 100644 --- a/bin/tests/test_server.c +++ b/bin/tests/test_server.c @@ -249,9 +249,9 @@ run(void) { read_cb, NULL, &sock); break; case TCP: - result = isc_nm_listentcpdns(netmgr, ISC_NM_LISTEN_ALL, - &sockaddr, read_cb, NULL, - accept_cb, NULL, 0, NULL, &sock); + result = isc_nm_listenstreamdns( + netmgr, ISC_NM_LISTEN_ALL, &sockaddr, read_cb, NULL, + accept_cb, NULL, 0, NULL, NULL, &sock); break; case DOT: { isc_tlsctx_createserver(NULL, NULL, &tls_ctx); diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index fc326970f3..ce315eb922 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -2036,13 +2036,14 @@ tcp_dispatch_connect(dns_dispatch_t *disp, dns_dispentry_t *resp) { peerbuf, resp->timeout); if (transport_type == DNS_TRANSPORT_TLS) { - isc_nm_tlsdnsconnect(disp->mgr->nm, &disp->local, - &disp->peer, tcp_connected, disp, - resp->timeout, tlsctx, sess_cache); + isc_nm_streamdnsconnect(disp->mgr->nm, &disp->local, + &disp->peer, tcp_connected, + disp, resp->timeout, tlsctx, + sess_cache); } else { - isc_nm_tcpdnsconnect(disp->mgr->nm, &disp->local, - &disp->peer, tcp_connected, disp, - resp->timeout); + isc_nm_streamdnsconnect( + disp->mgr->nm, &disp->local, &disp->peer, + tcp_connected, disp, resp->timeout, NULL, NULL); } break; diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index b2c102b479..ff1e524c0f 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -952,9 +952,9 @@ xfrin_start(dns_xfrin_ctx_t *xfr) { */ switch (transport_type) { case DNS_TRANSPORT_TCP: - isc_nm_tcpdnsconnect(xfr->netmgr, &xfr->sourceaddr, - &xfr->primaryaddr, xfrin_connect_done, - connect_xfr, 30000); + isc_nm_streamdnsconnect(xfr->netmgr, &xfr->sourceaddr, + &xfr->primaryaddr, xfrin_connect_done, + connect_xfr, 30000, NULL, NULL); break; case DNS_TRANSPORT_TLS: { result = dns_transport_get_tlsctx( diff --git a/lib/isccfg/aclconf.c b/lib/isccfg/aclconf.c index c980673267..e72134c8a7 100644 --- a/lib/isccfg/aclconf.c +++ b/lib/isccfg/aclconf.c @@ -719,13 +719,13 @@ cfg_acl_fromconfig2(const cfg_obj_t *acl_data, const cfg_obj_t *cctx, } else if (strcasecmp(cfg_obj_asstring(obj_transport), "tcp") == 0) { - transports = isc_nm_tcpdnssocket; + transports = isc_nm_streamdnssocket; encrypted = false; } else if (strcasecmp(cfg_obj_asstring(obj_transport), "udp-tcp") == 0) { /* Good ol' DNS over port 53 */ - transports = isc_nm_tcpdnssocket | + transports = isc_nm_streamdnssocket | isc_nm_udpsocket; encrypted = false; } else if (strcasecmp(cfg_obj_asstring(obj_transport), diff --git a/lib/ns/interfacemgr.c b/lib/ns/interfacemgr.c index 22b54cce26..d9ccdeced8 100644 --- a/lib/ns/interfacemgr.c +++ b/lib/ns/interfacemgr.c @@ -503,10 +503,10 @@ static isc_result_t ns_interface_listentcp(ns_interface_t *ifp) { isc_result_t result; - result = isc_nm_listentcpdns( + result = isc_nm_listenstreamdns( ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr, ns__client_request, ifp, ns__client_tcpconn, ifp, ifp->mgr->backlog, - &ifp->mgr->sctx->tcpquota, &ifp->tcplistensocket); + &ifp->mgr->sctx->tcpquota, NULL, &ifp->tcplistensocket); if (result != ISC_R_SUCCESS) { isc_log_write(IFMGR_COMMON_LOGARGS, ISC_LOG_ERROR, "creating TCP socket: %s",