mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 00:55:24 +00:00
refactor dns_xfrin to use dns_dispatch
the dns_xfrin module was still using the network manager directly to manage TCP connections and send and receive messages. this commit changes it to use the dispatch manager instead.
This commit is contained in:
@@ -2328,3 +2328,14 @@ dns_dispatchset_destroy(dns_dispatchset_t **dsetp) {
|
||||
isc_mutex_destroy(&dset->lock);
|
||||
isc_mem_putanddetach(&dset->mctx, dset, sizeof(dns_dispatchset_t));
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
dns_dispatch_checkperm(dns_dispatch_t *disp) {
|
||||
REQUIRE(VALID_DISPATCH(disp));
|
||||
|
||||
if (disp->handle == NULL || disp->socktype == isc_socktype_udp) {
|
||||
return (ISC_R_NOPERM);
|
||||
}
|
||||
|
||||
return (isc_nm_xfr_checkperm(disp->handle));
|
||||
}
|
||||
|
Reference in New Issue
Block a user