]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove support for shared UDP dispatch sockets
authorEvan Hunt <each@isc.org>
Wed, 16 Dec 2020 09:32:06 +0000 (01:32 -0800)
committerOndřej Surý <ondrej@sury.org>
Sat, 2 Oct 2021 08:21:43 +0000 (10:21 +0200)
commit5dcf55da03d707d2b1ea763308fa995292bb3d55
tree13ce4fed8bfb483ba43e7dfc6f947c0345b40c60
parent300392ae2faed4e84a99746a385c5760c44a94b9
Remove support for shared UDP dispatch sockets

Currently the netmgr doesn't support unconnected, shared UDP sockets, so
there's no reason to retain that functionality in the dispatcher prior
to porting to the netmgr.

In this commit, the DNS_DISPATCHATTR_EXCLUSIVE attribute has been
removed as it is now non-optional; UDP dispatches are alwasy exclusive.
Code implementing non-exclusive UDP dispatches has been removed.
dns_dispatch_getentrysocket() now always returns the dispsocket for UDP
dispatches and the dispatch socket for TCP dispatches.

There is no longer any need to search for existing dispatches from
dns_dispatch_getudp(), so the 'mask' option has been removed, and the
function renamed to the more descriptive dns_dispatch_createudp().
13 files changed:
bin/named/server.c
bin/nsupdate/nsupdate.c
bin/tests/system/pipelined/pipequeries.c
bin/tests/system/tkey/keycreate.c
bin/tests/system/tkey/keydelete.c
bin/tools/mdig.c
lib/dns/client.c
lib/dns/dispatch.c
lib/dns/include/dns/dispatch.h
lib/dns/request.c
lib/dns/resolver.c
lib/dns/tests/dispatch_test.c
lib/dns/tests/resolver_test.c