Skip to content
Snippets Groups Projects
Commit 3a05cafb authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Usage of hash table in nameserver.

parent e3c2a979
No related branches found
No related tags found
No related merge requests found
......@@ -469,8 +469,10 @@ static void ns_answer_from_zone(const dnslib_zone_t *zone,
while (1) {
//qname_old = dnslib_dname_copy(qname);
int exact_match = dnslib_zone_find_dname(zone, qname, &node,
&closest_encloser);
// int exact_match = dnslib_zone_find_dname(zone, qname, &node,
// &closest_encloser);
int exact_match = dnslib_zone_find_dname_hash(zone, qname,
&node, &closest_encloser);
DEBUG_NS(
if (node) {
char *name = dnslib_dname_to_str(node->owner);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment