mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
checkpoint
This commit is contained in:
@@ -103,13 +103,15 @@ done(isc_task_t *task, isc_event_t *event) {
|
|||||||
|
|
||||||
static dns_fetch_t *
|
static dns_fetch_t *
|
||||||
launch(dns_resolver_t *res, dns_name_t *name, dns_rdatatype_t type,
|
launch(dns_resolver_t *res, dns_name_t *name, dns_rdatatype_t type,
|
||||||
isc_boolean_t shared_ok, isc_task_t *task)
|
isc_boolean_t shared_ok, isc_boolean_t recursive, isc_task_t *task)
|
||||||
{
|
{
|
||||||
dns_fetch_t *fetch;
|
dns_fetch_t *fetch;
|
||||||
unsigned int options = 0;
|
unsigned int options = 0;
|
||||||
|
|
||||||
if (!shared_ok)
|
if (!shared_ok)
|
||||||
options |= DNS_FETCHOPT_UNSHARED;
|
options |= DNS_FETCHOPT_UNSHARED;
|
||||||
|
if (recursive)
|
||||||
|
options |= DNS_FETCHOPT_RECURSIVE;
|
||||||
|
|
||||||
LOCK(&lock);
|
LOCK(&lock);
|
||||||
|
|
||||||
@@ -183,12 +185,18 @@ main(int argc, char *argv[]) {
|
|||||||
DNS_R_SUCCESS);
|
DNS_R_SUCCESS);
|
||||||
|
|
||||||
ISC_LIST_INIT(fetches);
|
ISC_LIST_INIT(fetches);
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_a, ISC_TRUE, task1);
|
fetch = launch(res, dns_rootname, dns_rdatatype_a,
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_a, ISC_TRUE, task2);
|
ISC_TRUE, ISC_FALSE, task1);
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_a, ISC_TRUE, task2);
|
fetch = launch(res, dns_rootname, dns_rdatatype_a,
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_mx, ISC_TRUE, task1);
|
ISC_TRUE, ISC_FALSE, task2);
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_a, ISC_FALSE, task2);
|
fetch = launch(res, dns_rootname, dns_rdatatype_a,
|
||||||
fetch = launch(res, dns_rootname, dns_rdatatype_ns, ISC_TRUE, task1);
|
ISC_TRUE, ISC_FALSE, task2);
|
||||||
|
fetch = launch(res, dns_rootname, dns_rdatatype_mx,
|
||||||
|
ISC_TRUE, ISC_FALSE, task1);
|
||||||
|
fetch = launch(res, dns_rootname, dns_rdatatype_ns,
|
||||||
|
ISC_FALSE, ISC_TRUE, task2);
|
||||||
|
fetch = launch(res, dns_rootname, dns_rdatatype_ns,
|
||||||
|
ISC_TRUE, ISC_FALSE, task1);
|
||||||
cancel(fetch, task1);
|
cancel(fetch, task1);
|
||||||
|
|
||||||
(void)isc_app_run();
|
(void)isc_app_run();
|
||||||
|
Reference in New Issue
Block a user