]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor wildcard matching
authorEvan Hunt <each@isc.org>
Mon, 6 Nov 2023 16:02:49 +0000 (17:02 +0100)
committerEvan Hunt <each@isc.org>
Tue, 13 Feb 2024 22:14:17 +0000 (22:14 +0000)
commitd1acc987e9dcef77eac7a03a127f25e87ad04537
tree3fc6e95a039678e512a7f32ffcfced2653dbb5bb
parentdbf29b7b5bdfc07430791a1355495a613b087178
refactor wildcard matching

refactor the wildcard matching code to make it a bit easier to
understand, in hopes that it will reduce the difficulty of converting
from RBTDB to QPDB later.

there are also some minor optimizations: previously, after stepping
backward to find the predecessor, we stepped back foward *from* the
predecessor to find the successor.  we now reset the rbtnode chain to
its original starting point before stepping forward; this eliminates
some unnecessary processing. and, if neither predecessor nor successor
is found, we return early rather than carrying on with an unnecessary
effort to match labels.
lib/dns/rbt-zonedb.c