]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add .up pointer to slabheader
authorOndřej Surý <ondrej@isc.org>
Fri, 31 Jan 2025 14:47:33 +0000 (15:47 +0100)
committerEvan Hunt <each@isc.org>
Wed, 19 Feb 2025 22:58:32 +0000 (14:58 -0800)
commit15fe68e50d5d84f677950096762d3b27aa2425d2
treec14c8a295952a3e072899653cd8616e938753ea8
parent44026fc4adb16bf90b845b22b9723f6b6af4fcd4
Add .up pointer to slabheader

The dns_slabheader object uses the 'next' pointer for two purposes.
In the first header for any given type, 'next' points to the first
header for the next type. But 'down' points to the next header of
the same type, and in that record, 'next' points back up.

This design made the code confusing to read.  We now use a union
so that the 'next' pointer can also be called 'up'.
lib/dns/include/dns/rdataslab.h
lib/dns/qpzone.c
lib/dns/rdataslab.c