Home | History | Annotate | Download | only in dns

Lines Matching defs:zones

167  * The data in a RBT node has two pairs of bits for policy zones.
419 * qname_skip_recurse (a bit field indicating which policy zones
425 * has to have bits set for the policy zones for which
434 * triggers in policy zones listed after other zones
445 * zbits_req now contains bits set for zones which require
449 * zone requires recursion, then all zones after that (higher
455 * zbits_req = 0b000 mask = 0xffffffff (no zones have to wait for
457 * zbits_req = 0b001 mask = 0x00000000 (all zones have to wait)
461 * zbits_req = 0b011 mask = 0x00000000 (all zones have to wait)
462 * zbits_req = 0b100 mask = 0x00000011 (the 1st and 2nd zones don't
473 * zones, within the first policy zone where recursion may be
479 * Get a mask covering all policy zones that are not subordinate to
480 * other policy zones containing triggers that require that the
496 * Get the masks of zones with policies that
533 * This bit arithmetic creates a mask of zones in which
834 rpz = rpzs->zones[rpz_num];
1011 rpz = rpzs->zones[rpz_num];
1112 * clear all bits for higher numbered zones.
1456 * Get ready for a new set of policy zones for a view.
1462 dns_rpz_zones_t *zones;
1467 zones = isc_mem_get(mctx, sizeof(*zones));
1468 memset(zones, 0, sizeof(*zones));
1470 isc_rwlock_init(&zones->search_lock, 0, 0);
1471 isc_mutex_init(&zones->maint_lock);
1472 isc_refcount_init(&zones->refs, 1);
1473 isc_refcount_init(&zones->irefs, 1);
1475 zones->rps_cstr = rps_cstr;
1476 zones->rps_cstr_size = rps_cstr_size;
1479 result = dns_dnsrps_view_init(zones, rps_cstr);
1482 INSIST(!zones->p.dnsrps_enabled);
1484 if (result == ISC_R_SUCCESS && !zones->p.dnsrps_enabled) {
1486 &zones->rbt);
1493 result = isc_task_create(taskmgr, 0, &zones->updater);
1498 isc_mem_attach(mctx, &zones->mctx);
1499 zones->timermgr = timermgr;
1500 zones->taskmgr = taskmgr;
1502 *rpzsp = zones;
1506 dns_rbt_destroy(&zones->rbt);
1509 isc_refcount_decrementz(&zones->irefs);
1510 isc_refcount_destroy(&zones->irefs);
1511 isc_refcount_decrementz(&zones->refs);
1512 isc_refcount_destroy(&zones->refs);
1513 isc_mutex_destroy(&zones->maint_lock);
1514 isc_rwlock_destroy(&zones->search_lock);
1515 isc_mem_put(mctx, zones, sizeof(*zones));
1577 rpzs->zones[zone->num] = zone;
1843 if (rpz->rpzs->zones[rpz->num] == NULL) {
1943 if (rpz->rpzs->zones[rpz->num] == NULL) {
2253 * Forget a view's policy zones.
2270 dns_rpz_zone_t *rpz = rpzs->zones[rpz_num];
2271 rpzs->zones[rpz_num] = NULL;
2345 rpz = rpzs->zones[rpz_num];
2554 rpz = rpzs->zones[rpz_num];
2661 * There are no eligible zones for this IP address.
2701 * Search the summary radix tree for policy zones with triggers matching