Lines Matching defs:rpz_num
258 dns_rpz_num_t rpz_num;
261 rpz_num = 0;
265 rpz_num += 32;
270 rpz_num += 16;
274 rpz_num += 8;
278 rpz_num += 4;
282 rpz_num += 2;
285 ++rpz_num;
286 return (rpz_num);
320 dns_rpz_num_t rpz_num, dns_rpz_type_t type)
324 tgt_set->qname = DNS_RPZ_ZBIT(rpz_num);
329 tgt_set->ns = DNS_RPZ_ZBIT(rpz_num);
543 adj_trigger_cnt(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
555 cnt = &rpzs->triggers[rpz_num].client_ipv4;
558 cnt = &rpzs->triggers[rpz_num].client_ipv6;
563 cnt = &rpzs->triggers[rpz_num].qname;
569 cnt = &rpzs->triggers[rpz_num].ipv4;
572 cnt = &rpzs->triggers[rpz_num].ipv6;
577 cnt = &rpzs->triggers[rpz_num].nsdname;
583 cnt = &rpzs->triggers[rpz_num].nsipv4;
586 cnt = &rpzs->triggers[rpz_num].nsipv6;
596 *have |= DNS_RPZ_ZBIT(rpz_num);
602 *have &= ~DNS_RPZ_ZBIT(rpz_num);
776 const dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
795 REQUIRE(rpzs != NULL && rpz_num < rpzs->p.num_zones);
796 rpz = rpzs->zones[rpz_num];
799 make_addr_set(new_set, DNS_RPZ_ZBIT(rpz_num), rpz_type);
953 name2data(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
962 REQUIRE(rpzs != NULL && rpz_num < rpzs->p.num_zones);
963 rpz = rpzs->zones[rpz_num];
974 make_nm_set(&new_data->wild, rpz_num, rpz_type);
977 make_nm_set(&new_data->set, rpz_num, rpz_type);
1271 add_cidr(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
1280 result = name2ipkey(DNS_RPZ_ERROR_LEVEL, rpzs, rpz_num, rpz_type,
1310 adj_trigger_cnt(rpzs, rpz_num, rpz_type, &tgt_ip, tgt_prefix, ISC_TRUE);
1358 add_name(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
1373 name2data(rpzs, rpz_num, rpz_type, src_name, trig_name, &new_data);
1384 adj_trigger_cnt(rpzs, rpz_num, rpz_type, NULL, 0, ISC_TRUE);
1534 dns_rpz_num_t rpz_num;
1550 for (rpz_num = 0; rpz_num < DNS_RPZ_MAX_ZONES; ++rpz_num) {
1551 rpz = rpzs->zones[rpz_num];
1552 rpzs->zones[rpz_num] = NULL;
1571 dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num)
1578 REQUIRE(rpz_num < rpzs->p.num_zones);
1579 rpz = rpzs->zones[rpz_num];
1602 tgt = DNS_RPZ_ZBIT(rpz_num);
1624 load_rpzs->zones[rpz_num] = rpz;
1639 fix_triggers(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num) {
1676 dns_name_format(&rpzs->zones[rpz_num]->origin,
1713 * are made only for the rpz_num (and corresponding bit) of that
1744 dns_rpz_zones_t **load_rpzsp, dns_rpz_num_t rpz_num)
1770 fix_triggers(rpzs, rpz_num);
1785 new_bit = ~DNS_RPZ_ZBIT(rpz_num);
1879 rpzs->triggers[rpz_num] = load_rpzs->triggers[rpz_num];
1880 fix_triggers(rpzs, rpz_num);
1906 dns_rpz_add(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num, dns_name_t *src_name)
1912 REQUIRE(rpzs != NULL && rpz_num < rpzs->p.num_zones);
1913 rpz = rpzs->zones[rpz_num];
1924 result = add_name(rpzs, rpz_num, rpz_type, src_name);
1929 result = add_cidr(rpzs, rpz_num, rpz_type, src_name);
1944 del_cidr(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
1958 result = name2ipkey(DNS_RPZ_DEBUG_QUIET, rpzs, rpz_num, rpz_type,
1988 adj_trigger_cnt(rpzs, rpz_num, rpz_type, &tgt_ip, tgt_prefix, ISC_FALSE);
2031 del_name(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
2049 name2data(rpzs, rpz_num, rpz_type, src_name, trig_name, &del_data);
2108 adj_trigger_cnt(rpzs, rpz_num, rpz_type, NULL, 0, ISC_FALSE);
2115 dns_rpz_delete(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
2120 REQUIRE(rpzs != NULL && rpz_num < rpzs->p.num_zones);
2121 rpz = rpzs->zones[rpz_num];
2132 del_name(rpzs, rpz_num, rpz_type, src_name);
2137 del_cidr(rpzs, rpz_num, rpz_type, src_name);
2164 dns_rpz_num_t rpz_num;
2245 rpz_num = zbit_to_num(found->set.client_ip & tgt_set.client_ip);
2248 rpz_num = zbit_to_num(found->set.ip & tgt_set.ip);
2251 rpz_num = zbit_to_num(found->set.nsip & tgt_set.nsip);
2269 return (rpz_num);