mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
add dns_resolver_dispatchv4(), dns_resolver_dispatchv6() and
dns_resolver_socketmgr().
This commit is contained in:
parent
a5c30de260
commit
1a1a2ad3e8
@ -85,6 +85,7 @@ typedef struct dns_fetchevent {
|
||||
#define DNS_FETCHOPT_UNSHARED 0x02 /* See below. */
|
||||
#define DNS_FETCHOPT_RECURSIVE 0x04 /* Set RD? */
|
||||
#define DNS_FETCHOPT_NOEDNS0 0x08 /* Do not use EDNS. */
|
||||
#define DNS_FETCHOPT_FORWARDONLY 0x10 /* only use forwarders */
|
||||
|
||||
/*
|
||||
* XXXRTH Should this API be made semi-private? (I.e.
|
||||
@ -342,6 +343,9 @@ dns_resolver_destroyfetch(dns_fetch_t **fetchp);
|
||||
* *fetchp == NULL.
|
||||
*/
|
||||
|
||||
dns_dispatch_t * dns_resolver_dispatchv4(dns_resolver_t *resolver);
|
||||
dns_dispatch_t * dns_resolver_dispatchv6(dns_resolver_t *resolver);
|
||||
isc_socketmgr_t * dns_resolver_socketmgr(dns_resolver_t *resolver);
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* DNS_RESOLVER_H */
|
||||
|
@ -4513,3 +4513,21 @@ dns_resolver_destroyfetch(dns_fetch_t **fetchp) {
|
||||
if (bucket_empty)
|
||||
empty_bucket(res);
|
||||
}
|
||||
|
||||
dns_dispatch_t *
|
||||
dns_resolver_dispatchv4(dns_resolver_t *resolver) {
|
||||
REQUIRE(VALID_RESOLVER(resolver));
|
||||
return (resolver->dispatchv4);
|
||||
}
|
||||
|
||||
dns_dispatch_t *
|
||||
dns_resolver_dispatchv6(dns_resolver_t *resolver) {
|
||||
REQUIRE(VALID_RESOLVER(resolver));
|
||||
return (resolver->dispatchv6);
|
||||
}
|
||||
|
||||
isc_socketmgr_t *
|
||||
dns_resolver_socketmgr(dns_resolver_t *resolver) {
|
||||
REQUIRE(VALID_RESOLVER(resolver));
|
||||
return (resolver->socketmgr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user