Both qname and qtype arguments to dns_adb_createfind() were unused.
Remove both these arguments from the function prototype.
*/
isc_result_t
dns_adb_createfind(dns_adb_t *adb, isc_loop_t *loop, isc_job_cb cb, void *cbarg,
- const dns_name_t *name, const dns_name_t *qname,
- dns_rdatatype_t qtype ISC_ATTR_UNUSED, unsigned int options,
+ const dns_name_t *name, unsigned int options,
isc_stdtime_t now, in_port_t port, unsigned int depth,
isc_counter_t *qc, isc_counter_t *gqc,
dns_adbfind_t **findp) {
REQUIRE(cb != NULL);
}
REQUIRE(name != NULL);
- REQUIRE(qname != NULL);
REQUIRE(findp != NULL && *findp == NULL);
REQUIRE((options & DNS_ADBFIND_ADDRESSMASK) != 0);
}
}
-#define EDNSTOS 3U
-
void
dns_adb_plainresponse(dns_adb_t *adb, dns_adbaddrinfo_t *addr) {
REQUIRE(DNS_ADB_VALID(adb));
isc_result_t
dns_adb_createfind(dns_adb_t *adb, isc_loop_t *loop, isc_job_cb cb, void *cbarg,
- const dns_name_t *name, const dns_name_t *qname,
- dns_rdatatype_t qtype, unsigned int options,
+ const dns_name_t *name, unsigned int options,
isc_stdtime_t now, in_port_t port, unsigned int depth,
isc_counter_t *qc, isc_counter_t *gqc, dns_adbfind_t **find);
/*%<
*
*\li *name is a valid dns_name_t.
*
- *\li qname != NULL and *qname be a valid dns_name_t.
- *
*\li find != NULL && *find == NULL.
*
* Returns:
*\li The event was posted to the task.
*/
-void
-dns_adbfind_done(dns_adbfind_t find);
-/*%<
- * Marks a find as ready to free.
- *
- * Requires:
- *
- *\li 'find' != NULL and *find be valid dns_adbfind_t pointer.
- */
-
unsigned int
dns_adb_findstatus(dns_adbfind_t *);
/*%<
INSIST(!SHUTTINGDOWN(fctx));
fetchctx_ref(fctx);
result = dns_adb_createfind(fctx->adb, fctx->loop, fctx_finddone, fctx,
- name, fctx->name, fctx->type, options, now,
- res->view->dstport, fctx->depth + 1,
- fctx->qc, fctx->gqc, &find);
+ name, options, now, res->view->dstport,
+ fctx->depth + 1, fctx->qc, fctx->gqc,
+ &find);
isc_log_write(DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_RESOLVER,
ISC_LOG_DEBUG(3), "fctx %p(%s): createfind for %s - %s",
result = dns_adb_createfind(
adb, notify->zone->loop, process_notify_adb_event, notify,
- ¬ify->ns, dns_rootname, 0, options, 0,
- notify->zone->view->dstport, 0, NULL, NULL, ¬ify->find);
+ ¬ify->ns, options, 0, notify->zone->view->dstport, 0, NULL,
+ NULL, ¬ify->find);
dns_adb_detach(&adb);
/* Something failed? */
result = dns_adb_createfind(
adb, checkds->zone->loop, process_checkds_adb_event, checkds,
- &checkds->ns, dns_rootname, 0, options, 0,
- checkds->zone->view->dstport, 0, NULL, NULL, &checkds->find);
+ &checkds->ns, options, 0, checkds->zone->view->dstport, 0, NULL,
+ NULL, &checkds->find);
dns_adb_detach(&adb);
/* Something failed? */