* to the zone's data.
*
* Due to the current zone implementation (as a list of rr's), this
- * function is extremely slow.
+ * function is extremely slow. Another (probably better) way to do this
+ * is to use an ldns_dnssec_zone structure and the mark_glue function
*
* \param[in] z the zone to look for glue
* \return the rr_list with the glue
result = LDNS_STATUS_ERR;
} else {
result = ldns_send_buffer(result_packet, r, qb, tsig_mac);
-/*
-printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n");
-ldns_pkt_print(stdout, query_pkt);
-printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n");
-printf("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
-ldns_pkt_print(stdout, *result_packet);
-printf("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
-*/
}
ldns_buffer_free(qb);
}
}
#else
- tsig_mac = tsig_mac;
+ (void)tsig_mac;
#endif /* HAVE_SSL */
LDNS_FREE(reply_bytes);
case LDNS_RDF_TYPE_NONE:
default:
/* default default ??? */
- printf("unknown\n");
status = LDNS_STATUS_ERR;
break;
}
ldns_resolver_tsig_algorithm(r), NULL);
#else
/* do nothing */
- p = p;
- r = r;
+ (void)p;
+ (void)r;
#endif /* HAVE_SSL */
/* No TSIG to do. */
return LDNS_STATUS_OK;
return new_list;
}
-/* this will be an EXPENSIVE op with our zone structure */
+/*
+ * Get the list of glue records in a zone
+ */
ldns_rr_list *
ldns_zone_glue_rr_list(const ldns_zone *z)
{
-#if 0
- ldns_rr_list *rrs = ldns_zone_rrs(z);
- ldns_rr_list *glue_rrs = ldns_rr_list_new();
- ldns_rr_list *stripped_rrs = ldns_zone_strip_glue_rrs(ldns_rr_owner(ldns_zone_soa(z)), rrs, glue_rrs);
- printf("stripped:\n");
- ldns_rr_list_print(stdout, stripped_rrs);
- printf("glue:\n");
- ldns_rr_list_print(stdout, glue_rrs);
- ldns_rr_list_free(stripped_rrs);
- return glue_rrs;
-#endif
-
/* when do we find glue? It means we find an IP address
* (AAAA/A) for a nameserver listed in the zone
*
} else {
return glue;
}
-
}
ldns_zone *