]> git.ipfire.org Git - thirdparty/bind9.git/commit
Include disptype and transport in dispatch hash key
authorOndřej Surý <ondrej@isc.org>
Thu, 9 Apr 2026 15:35:09 +0000 (17:35 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 6 May 2026 13:05:48 +0000 (15:05 +0200)
commit5588f37baab908980ba4875ac1bfe9e9877b8ddd
tree92b0e340623bc0955103f296fa9b5773828e9283
parentabe201bac3ca520aefbafbf9c61a3ecfd5aba672
Include disptype and transport in dispatch hash key

Move disptype and transport into dispatch_hash() and dispatch_match()
so that the match function is the single source of truth for whether
two TCP dispatches are interchangeable.  This replaces the post-loop
disptype filter in dispatch_gettcp() and makes the disptype field in
struct dispatch_key actually used.

(cherry picked from commit 46547966839926313abdb4f4de57a8e94a64f0c0)
lib/dns/dispatch.c