2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

add plink

This commit is contained in:
Michael Graff
1999-10-28 20:09:51 +00:00
parent 1c1d1a5a96
commit d4d2a13916
3 changed files with 5 additions and 8 deletions

View File

@@ -66,7 +66,6 @@ isc_result_t ns_rootns_init(void);
void create_managers(void);
static void lookup_callback(isc_task_t *, isc_event_t *);
void create_view(void);
void destroy_view(void);
client_t *new_client(void);
void free_client(client_t **);
static inline void CLOCK(void);
@@ -294,11 +293,6 @@ create_view(void)
dns_view_freeze(view);
}
void
destroy_view(void)
{
dns_view_detach(&view);
}
void
insert(char *target, char *addr, dns_ttl_t ttl, isc_stdtime_t now)
@@ -465,7 +459,7 @@ main(int argc, char **argv)
dns_adb_dump(adb, stderr);
dns_adb_detach(&adb);
destroy_view();
dns_view_detach(&view);
isc_socketmgr_destroy(&socketmgr);
isc_timermgr_destroy(&timermgr);

View File

@@ -52,7 +52,7 @@
#include "../isc/util.h"
#if 1
#if 0
#define DP(x) printf x
#else
#define DP(x)
@@ -864,6 +864,7 @@ new_adbhandle(dns_adb_t *adb)
h->query_pending = ISC_FALSE;
h->partial_result = ISC_FALSE;
h->result = ISC_R_UNEXPECTED;
ISC_LINK_INIT(h, plink);
ISC_LIST_INIT(h->list);
h->name_bucket = DNS_ADB_INVALIDBUCKET;
h->adbname = NULL;
@@ -959,6 +960,7 @@ free_adbhandle(dns_adb_t *adb, dns_adbhandle_t **handlep)
*handlep = NULL;
INSIST(ISC_LIST_EMPTY(handle->list));
INSIST(!ISC_LINK_LINKED(handle, plink));
INSIST(!ISC_LINK_LINKED(handle, link));
INSIST(handle->name_bucket == DNS_ADB_INVALIDBUCKET);
INSIST(handle->adbname == NULL);

View File

@@ -122,6 +122,7 @@ struct dns_adbhandle {
isc_boolean_t query_pending; /* RO: partial list */
isc_boolean_t partial_result; /* RO: addrs missing */
isc_result_t result; /* RO: extra result */
ISC_LINK(dns_adbhandle_t) plink; /* RW: client use */
/* Private */
isc_mutex_t lock; /* locks all below */