Lines Matching refs:view
47 #include <dns/view.h>
187 * on it. It has a view, and it may have any of a non-reset OPT,
282 * We need to detach from the view early when shutting down
285 * - The resolver will not shut down until the view refcount is zero
286 * - The view refcount does not go to zero until all clients detach
287 * - The client does not detach from the view until references is zero
290 * Keep the view attached until any outstanding updates complete.
293 client->newstate == NS_CLIENTSTATE_FREED && client->view != NULL)
294 dns_view_detach(&client->view);
628 if (client->view != NULL)
629 dns_view_detach(&client->view);
939 if (client->view != NULL) {
940 if (client->view->preferred_glue == dns_rdatatype_a)
942 else if (client->view->preferred_glue == dns_rdatatype_aaaa)
1176 dns_view_t *view;
1185 view = client->view;
1186 resolver = (view != NULL) ? view->resolver : NULL;
1238 * We run this unlocked as both the view list and the interface list
1246 dns_view_t *view;
1266 for (view = ISC_LIST_HEAD(ns_g_server->viewlist);
1267 view != NULL;
1268 view = ISC_LIST_NEXT(view, link)) {
1270 if (view->matchrecursiveonly)
1273 if (rdclass != view->rdclass)
1280 result = dns_view_gettsig(view, &mykey->name, &key);
1290 if (allowed(&netsrc, tsig, view->matchclients) &&
1291 allowed(&netdst, tsig, view->matchdestinations))
1294 return (ISC_TF(view == myview));
1386 dns_view_t *view;
1667 * Find a view that matches the client's source address.
1669 for (view = ISC_LIST_HEAD(ns_g_server->viewlist);
1670 view != NULL;
1671 view = ISC_LIST_NEXT(view, link)) {
1672 if (client->message->rdclass == view->rdclass ||
1678 view);
1682 if (allowed(&netaddr, tsig, view->matchclients) &&
1683 allowed(&destaddr, tsig, view->matchdestinations) &&
1685 == 0 && view->matchrecursiveonly))
1687 dns_view_attach(view, &client->view);
1693 if (view == NULL) {
1715 "no matching view in class '%s'", classname);
1716 ns_client_dumpmessage(client, "no matching view in class");
1723 "using view '%s'", view->name);
1828 if (client->view->resolver != NULL &&
1829 client->view->recursion == ISC_TRUE &&
1831 client->view->recursionacl,
1834 client->view->cacheacl,
1837 client->view->recursiononacl,
1840 client->view->cacheonacl,
1856 isc_uint16_t udpsize = view->maxudp;
1857 (void) dns_peerlist_peerbyaddr(view->peers, &netaddr, &peer);
2048 client->view = NULL;
2654 if (client->view != NULL && strcmp(client->view->name, "_bind") != 0 &&
2655 strcmp(client->view->name, "_default") != 0) {
2656 name = client->view->name;
2657 sep = ": view ";
2742 if (client->view != NULL &&
2743 strcmp(client->view->name, "_bind") != 0 &&
2744 strcmp(client->view->name, "_default") != 0) {
2745 name = client->view->name;
2746 sep = ": view ";