Lines Matching defs:tgt_ip
579 dns_rpz_type_t rpz_type, const dns_rpz_cidr_key_t *tgt_ip,
586 REQUIRE(tgt_ip != NULL);
587 if (KEY_IS_IPV4(tgt_prefix, tgt_ip)) {
600 tgt_ip != NULL);
601 if (KEY_IS_IPV4(tgt_prefix, tgt_ip)) {
614 REQUIRE(tgt_ip != NULL);
615 if (KEY_IS_IPV4(tgt_prefix, tgt_ip)) {
701 ip2name(const dns_rpz_cidr_key_t *tgt_ip, dns_rpz_prefix_t tgt_prefix,
713 if (KEY_IS_IPV4(tgt_prefix, tgt_ip)) {
715 tgt_prefix - 96U, tgt_ip->w[3] & 0xffU,
716 (tgt_ip->w[3] >> 8) & 0xffU,
717 (tgt_ip->w[3] >> 16) & 0xffU,
718 (tgt_ip->w[3] >> 24) & 0xffU);
730 ((tgt_ip->w[DNS_RPZ_CIDR_WORDS - 1 - i] >> 16) &
732 w[i * 2] = tgt_ip->w[DNS_RPZ_CIDR_WORDS - 1 - i] &
818 dns_rpz_cidr_key_t *tgt_ip, dns_rpz_prefix_t *tgt_prefix,
889 tgt_ip->w[0] = 0;
890 tgt_ip->w[1] = 0;
891 tgt_ip->w[2] = ADDR_V4MAPPED;
892 tgt_ip->w[3] = 0;
903 tgt_ip->w[3] |= l << i;
919 tgt_ip->w[3 - i / 2] = 0;
937 tgt_ip->w[3 - i / 2] = l;
939 tgt_ip->w[3 - i / 2] |= l << 16;
959 aword = tgt_ip->w[prefix / DNS_RPZ_CIDR_WORD_BITS];
980 result = ip2name(tgt_ip, (dns_rpz_prefix_t)prefix_num, NULL,
1138 search(dns_rpz_zones_t *rpzs, const dns_rpz_cidr_key_t *tgt_ip,
1163 child = new_node(rpzs, tgt_ip, tgt_prefix, NULL);
1198 dbit = diff_keys(tgt_ip, tgt_prefix, &cur->ip, cur->prefix);
1246 new_parent = new_node(rpzs, tgt_ip, tgt_prefix, cur);
1284 cur_num = DNS_RPZ_IP_BIT(tgt_ip, dbit);
1299 sibling = new_node(rpzs, tgt_ip, tgt_prefix, NULL);
1303 new_parent = new_node(rpzs, tgt_ip, dbit, cur);
1314 child_num = DNS_RPZ_IP_BIT(tgt_ip, dbit);
1332 dns_rpz_cidr_key_t tgt_ip;
1339 src_name, &tgt_ip, &tgt_prefix, &set);
1347 result = search(rpzs, &tgt_ip, tgt_prefix, &set, true, &found);
1370 adj_trigger_cnt(rpzs, rpz_num, rpz_type, &tgt_ip, tgt_prefix, true);
2376 dns_rpz_cidr_key_t tgt_ip;
2387 src_name, &tgt_ip, &tgt_prefix, &tgt_set);
2392 result = search(rpzs, &tgt_ip, tgt_prefix, &tgt_set, false, &tgt);
2417 adj_trigger_cnt(rpzs, rpz_num, rpz_type, &tgt_ip, tgt_prefix, false);
2590 dns_rpz_cidr_key_t tgt_ip;
2606 tgt_ip.w[0] = 0;
2607 tgt_ip.w[1] = 0;
2608 tgt_ip.w[2] = ADDR_V4MAPPED;
2609 tgt_ip.w[3] = ntohl(netaddr->type.in.s_addr);
2633 tgt_ip.w[i] = ntohl(src_ip6.w[i]);
2658 result = search(rpzs, &tgt_ip, 128, &tgt_set, false, &found);