Lines Matching defs:set
40 * server IP addresses in a single tree. One set of IP addresses is
43 * The second set is for rpz-nsip policies or policies triggered by addresses
122 dns_rpz_addr_zbits_t set;
143 dns_rpz_nm_zbits_t set;
253 * Return the bit number of the highest set bit in 'zbit'.
290 * Make a set of bit masks given one or more bits and their type.
346 sum = cnode->set;
383 * zones can be processed without recursion) is set to all 0's
387 * set to a non-zero value by fix_qname_skip_recurse(). The mask
388 * has to have bits set for the policy zones for which
408 * zbits_req now contains bits set for zones which require
470 goto set;
494 goto set;
513 * can set its 0 to 1.
521 * Also set the bit for zone 0, because if it's in
534 set:
973 memset(&new_data->set, 0, sizeof(new_data->set));
977 make_nm_set(&new_data->set, rpz_num, rpz_type);
994 * \brief Count Leading Zeros: Find the location of the left-most set
1094 dns_rpz_addr_zbits_t set;
1099 set = *tgt_set;
1122 child->set.client_ip |= tgt_set->client_ip;
1123 child->set.ip |= tgt_set->ip;
1124 child->set.nsip |= tgt_set->nsip;
1130 if ((cur->sum.client_ip & set.client_ip) == 0 &&
1131 (cur->sum.ip & set.ip) == 0 &&
1132 (cur->sum.nsip & set.nsip) == 0) {
1155 if ((cur->set.client_ip & set.client_ip) != 0 ||
1156 (cur->set.ip & set.ip) != 0 ||
1157 (cur->set.nsip & set.nsip) != 0) {
1172 cur->set.client_ip |= tgt_set->client_ip;
1173 cur->set.ip |= tgt_set->ip;
1174 cur->set.nsip |= tgt_set->nsip;
1201 new_parent->set = *tgt_set;
1208 if ((cur->set.client_ip & set.client_ip) != 0 ||
1209 (cur->set.ip & set.ip) != 0 ||
1210 (cur->set.nsip & set.nsip) != 0) {
1219 set.client_ip = trim_zbits(set.client_ip,
1220 cur->set.client_ip);
1221 set.ip = trim_zbits(set.ip,
1222 cur->set.ip);
1223 set.nsip = trim_zbits(set.nsip,
1224 cur->set.nsip);
1260 sibling->set = *tgt_set;
1276 dns_rpz_addr_zbits_t set;
1281 src_name, &tgt_ip, &tgt_prefix, &set);
1288 result = search(rpzs, &tgt_ip, tgt_prefix, &set, ISC_TRUE, &found);
1344 if ((nm_data->set.qname & new_data->set.qname) != 0 ||
1345 (nm_data->set.ns & new_data->set.ns) != 0 ||
1350 nm_data->set.qname |= new_data->set.qname;
1351 nm_data->set.ns |= new_data->set.ns;
1397 * Get ready for a new set of policy zones for a view.
1791 new_ip.ip = cnode->set.ip & new_bit;
1792 new_ip.client_ip = cnode->set.client_ip & new_bit;
1793 new_ip.nsip = cnode->set.nsip & new_bit;
1844 new_data.set.qname = (nm_data->set.qname &
1846 new_data.set.ns = nm_data->set.ns & new_bit;
1850 if (new_data.set.qname != 0 ||
1851 new_data.set.ns != 0 ||
1980 tgt_set.client_ip &= tgt->set.client_ip;
1981 tgt_set.ip &= tgt->set.ip;
1982 tgt_set.nsip &= tgt->set.nsip;
1983 tgt->set.client_ip &= ~tgt_set.client_ip;
1984 tgt->set.ip &= ~tgt_set.ip;
1985 tgt->set.nsip &= ~tgt_set.nsip;
2004 if (tgt->set.client_ip != 0 ||
2005 tgt->set.ip != 0 ||
2006 tgt->set.nsip != 0)
2079 del_data.set.qname &= nm_data->set.qname;
2080 del_data.set.ns &= nm_data->set.ns;
2084 exists = ISC_TF(del_data.set.qname != 0 || del_data.set.ns != 0 ||
2087 nm_data->set.qname &= ~del_data.set.qname;
2088 nm_data->set.ns &= ~del_data.set.ns;
2092 if (nm_data->set.qname == 0 && nm_data->set.ns == 0 &&
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);
2301 found_zbits = nm_data->set.qname;
2303 found_zbits = nm_data->set.ns;