Lines Matching defs:view

50 #include <dns/view.h>
201 * on it. It has a view, and it may have any of a non-reset OPT,
303 * We need to detach from the view early when shutting down
306 * - The resolver will not shut down until the view refcount is zero
307 * - The view refcount does not go to zero until all clients detach
308 * - The client does not detach from the view until references is zero
311 * Keep the view attached until any outstanding updates complete.
314 client->newstate == NS_CLIENTSTATE_FREED && client->view != NULL)
315 dns_view_detach(&client->view);
667 if (client->view != NULL)
668 dns_view_detach(&client->view);
942 if (client->view != NULL) {
943 if (client->view->preferred_glue == dns_rdatatype_a)
945 else if (client->view->preferred_glue == dns_rdatatype_aaaa)
1198 dns_view_t *view;
1224 view = client->view;
1225 resolver = (view != NULL) ? view->resolver : NULL;
1310 * We run this unlocked as both the view list and the interface list
1318 dns_view_t *view;
1338 for (view = ISC_LIST_HEAD(ns_g_server->viewlist);
1339 view != NULL;
1340 view = ISC_LIST_NEXT(view, link)) {
1342 if (view->matchrecursiveonly)
1345 if (rdclass != view->rdclass)
1352 result = dns_view_gettsig(view, &mykey->name, &key);
1362 if (allowed(&netsrc, tsig, view->matchclients) &&
1363 allowed(&netdst, tsig, view->matchdestinations))
1366 return (ISC_TF(view == myview));
1381 dns_view_t *view;
1716 * Find a view that matches the client's source address.
1718 for (view = ISC_LIST_HEAD(ns_g_server->viewlist);
1719 view != NULL;
1720 view = ISC_LIST_NEXT(view, link)) {
1721 if (client->message->rdclass == view->rdclass ||
1727 view);
1731 if (allowed(&netaddr, tsig, view->matchclients) &&
1733 view->matchdestinations) &&
1735 == 0 && view->matchrecursiveonly))
1737 dns_view_attach(view, &client->view);
1743 if (view == NULL) {
1765 "no matching view in class '%s'", classname);
1766 ns_client_dumpmessage(client, "no matching view in class");
1773 "using view '%s'", view->name);
1880 if (client->view->resolver != NULL &&
1881 client->view->recursion == ISC_TRUE &&
1883 client->view->recursionacl,
1886 client->view->cacheacl,
1889 client->view->recursiononacl,
1892 client->view->cacheonacl,
1908 isc_uint16_t udpsize = view->maxudp;
1909 (void) dns_peerlist_peerbyaddr(view->peers, &netaddr, &peer);
2107 client->view = NULL;
2751 if (client->view != NULL && strcmp(client->view->name, "_bind") != 0 &&
2752 strcmp(client->view->name, "_default") != 0) {
2753 sep4 = ": view ";
2754 viewname = client->view->name;
2848 if (client->view != NULL &&
2849 strcmp(client->view->name, "_bind") != 0 &&
2850 strcmp(client->view->name, "_default") != 0) {
2851 name = client->view->name;
2852 sep = ": view ";