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

Simplify dns_dispatchmgr_create with fixed buffersize

- UDP buffersize is now established when creating dispatch manager
  and is always set to 4096.

- Set up the default port range in dispatchmgr before setting the magic
  number.

- Magic is not set until dispatchmgr is fully created.
This commit is contained in:
Evan Hunt
2020-12-09 15:45:13 -08:00
committed by Ondřej Surý
parent 57fce0e895
commit ca11f68d61
14 changed files with 138 additions and 173 deletions

View File

@@ -630,8 +630,8 @@ find_udp_dispatch(dns_requestmgr_t *requestmgr, const isc_sockaddr_t *srcaddr,
}
return (dns_dispatch_getudp(requestmgr->dispatchmgr,
requestmgr->socketmgr, requestmgr->taskmgr,
srcaddr, 4096, 32768, 32768, 16411, 16433,
attrs, dispatchp));
srcaddr, 32768, 32768, 16411, 16433, attrs,
dispatchp));
}
static isc_result_t