Lines Matching defs:stub
87 #define DNS_STUB_VALID(stub) ISC_MAGIC_VALID(stub, STUB_MAGIC)
90 #define DNS_ZONEMGR_VALID(stub) ISC_MAGIC_VALID(stub, ZONEMGR_MAGIC)
587 * dns_stub holds state while performing a 'stub' transfer.
777 dns_stub_t *stub);
1759 * This is true for slave zones, stub zones, key zones, and zones that
1959 * This is a slave, stub, or dynamically updated
11353 dns_stub_t *stub = NULL;
11365 stub = revent->ev_arg;
11366 INSIST(DNS_STUB_VALID(stub));
11370 zone = stub->zone;
11392 "refreshing stub: timeout retrying "
11400 "could not refresh stub from master %s"
11429 "refreshing stub: rcode (%.*s) retrying "
11437 "refreshing stub: "
11449 "refreshing stub: truncated TCP "
11462 dns_zone_log(zone, ISC_LOG_INFO, "refreshing stub: "
11476 "refreshing stub: unexpected CNAME response "
11483 "refreshing stub: no NS records in response "
11491 result = save_nsrrset(msg, &zone->origin, stub->db, stub->version);
11494 "refreshing stub: unable to save NS records "
11502 dns_db_closeversion(stub->db, &stub->version, ISC_TRUE);
11505 zone_attachdb(zone, stub->db);
11517 dns_db_detach(&stub->db);
11536 if (stub->version != NULL)
11537 dns_db_closeversion(stub->db, &stub->version, ISC_FALSE);
11538 if (stub->db != NULL)
11539 dns_db_detach(&stub->db);
11591 ns_query(zone, NULL, stub);
11597 stub->magic = 0;
11598 dns_zone_idetach(&stub->zone);
11599 INSIST(stub->db == NULL);
11600 INSIST(stub->version == NULL);
11601 isc_mem_put(stub->mctx, stub, sizeof(*stub));
12409 ns_query(dns_zone_t *zone, dns_rdataset_t *soardataset, dns_stub_t *stub) {
12424 REQUIRE((soardataset != NULL && stub == NULL) ||
12425 (soardataset == NULL && stub != NULL));
12426 REQUIRE(stub == NULL || DNS_STUB_VALID(stub));
12430 if (stub == NULL) {
12431 stub = isc_mem_get(zone->mctx, sizeof(*stub));
12432 if (stub == NULL)
12434 stub->magic = STUB_MAGIC;
12435 stub->mctx = zone->mctx;
12436 stub->zone = NULL;
12437 stub->db = NULL;
12438 stub->version = NULL;
12443 zone_iattach(zone, &stub->zone);
12452 dns_db_attach(zone->db, &stub->db);
12463 &stub->db);
12466 "refreshing stub: "
12472 dns_db_settask(stub->db, zone->task);
12475 result = dns_db_newversion(stub->db, &stub->version);
12477 dns_zone_log(zone, ISC_LOG_INFO, "refreshing stub: "
12486 result = dns_db_findnode(stub->db, &zone->origin, ISC_TRUE,
12489 dns_zone_log(zone, ISC_LOG_INFO, "refreshing stub: "
12495 result = dns_db_addrdataset(stub->db, node, stub->version, 0,
12497 dns_db_detachnode(stub->db, &node);
12500 "refreshing stub: "
12608 stub_callback, stub, &zone->request);
12620 if (stub != NULL) {
12621 stub->magic = 0;
12622 if (stub->version != NULL)
12623 dns_db_closeversion(stub->db, &stub->version,
12625 if (stub->db != NULL)
12626 dns_db_detach(&stub->db);
12627 if (stub->zone != NULL)
12628 zone_idetach(&stub->zone);
12629 isc_mem_put(stub->mctx, stub, sizeof(*stub));