]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
change ns__client_request() to ns_client_request()
authorEvan Hunt <each@isc.org>
Wed, 12 Jan 2022 07:35:22 +0000 (23:35 -0800)
committerEvan Hunt <each@isc.org>
Tue, 28 Mar 2023 19:38:28 +0000 (12:38 -0700)
in the future we'll want to call this function from outside named,
so change the name to one suitable for external access.

lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/interfacemgr.c
tests/libtest/ns.c

index 13b4b4f49be232f97dde55690b918858ffeaa8ef..c016c8986cfd0dc3375259d1549883d4d474acdb 100644 (file)
@@ -1680,8 +1680,8 @@ ns__client_put_cb(void *client0) {
  * or tcpmsg (TCP case).
  */
 void
-ns__client_request(isc_nmhandle_t *handle, isc_result_t eresult,
-                  isc_region_t *region, void *arg) {
+ns_client_request(isc_nmhandle_t *handle, isc_result_t eresult,
+                 isc_region_t *region, void *arg) {
        ns_client_t *client = NULL;
        isc_result_t result;
        isc_result_t sigresult = ISC_R_SUCCESS;
index bfd4e131c40f3efaed12f25530e058cb99057947..28f4bfd9292101e8f4e3cba61a26933fcc064f8c 100644 (file)
@@ -445,8 +445,8 @@ ns_client_addopt(ns_client_t *client, dns_message_t *message,
  */
 
 void
-ns__client_request(isc_nmhandle_t *handle, isc_result_t eresult,
-                  isc_region_t *region, void *arg);
+ns_client_request(isc_nmhandle_t *handle, isc_result_t eresult,
+                 isc_region_t *region, void *arg);
 
 /*%<
  * Handle client requests.
index c21003c2c265b0cb67e598119e378b3154162939..ae73e42340756e5ffb88c744a4e47688f8c13bbc 100644 (file)
@@ -482,7 +482,7 @@ ns_interface_listenudp(ns_interface_t *ifp) {
 
        /* Reserve space for an ns_client_t with the netmgr handle */
        result = isc_nm_listenudp(ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr,
-                                 ns__client_request, ifp,
+                                 ns_client_request, ifp,
                                  &ifp->udplistensocket);
        return (result);
 }
@@ -492,7 +492,7 @@ ns_interface_listentcp(ns_interface_t *ifp) {
        isc_result_t result;
 
        result = isc_nm_listenstreamdns(
-               ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr, ns__client_request,
+               ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr, ns_client_request,
                ifp, ns__client_tcpconn, ifp, ifp->mgr->backlog,
                &ifp->mgr->sctx->tcpquota, NULL, &ifp->tcplistensocket);
        if (result != ISC_R_SUCCESS) {
@@ -525,7 +525,7 @@ ns_interface_listentls(ns_interface_t *ifp, isc_tlsctx_t *sslctx) {
        isc_result_t result;
 
        result = isc_nm_listenstreamdns(
-               ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr, ns__client_request,
+               ifp->mgr->nm, ISC_NM_LISTEN_ALL, &ifp->addr, ns_client_request,
                ifp, ns__client_tcpconn, ifp, ifp->mgr->backlog,
                &ifp->mgr->sctx->tcpquota, sslctx, &ifp->tcplistensocket);
 
@@ -559,7 +559,7 @@ load_http_endpoints(isc_nm_http_endpoints_t *epset, ns_interface_t *ifp,
 
        for (size_t i = 0; i < neps; i++) {
                result = isc_nm_http_endpoints_add(epset, eps[i],
-                                                  ns__client_request, ifp);
+                                                  ns_client_request, ifp);
                if (result != ISC_R_SUCCESS) {
                        break;
                }
index 49c60256e20edcc03ad7cfb8dadc1b46af5f59a5..4e450c86ddf53aaf1d20a0037f140ca41c864f54 100644 (file)
@@ -456,7 +456,7 @@ ns_test_qctx_create(const ns_test_qctx_create_params_t *params,
 
        /*
         * Allow recursion for the client.  As NS_CLIENTATTR_RA normally gets
-        * set in ns__client_request(), i.e. earlier than the unit tests hook
+        * set in ns_client_request(), i.e. earlier than the unit tests hook
         * into the call chain, just set it manually.
         */
        client->attributes |= NS_CLIENTATTR_RA;