]> git.ipfire.org Git - thirdparty/bind9.git/commit
reduce the size of cfg_obj by using pointers for addresses
authorEvan Hunt <each@isc.org>
Thu, 30 Oct 2025 20:40:10 +0000 (13:40 -0700)
committerEvan Hunt <each@isc.org>
Thu, 30 Oct 2025 22:17:21 +0000 (15:17 -0700)
commit714f73d78691efea754c2e5362724cf07df2a917
tree809cf9946310c74f85ef0c0eaed838d1ed919551
parent89df706874190b4b2dd3a2b452ade8c94d8f7497
reduce the size of cfg_obj by using pointers for addresses

instead of having sockaddr and netaddr members in the cfg_obj->value
union, we now just keep pointers, and allocate memory when parsing
these types. this reduces the size of cfg_obj_t from 112 to 80 bytes.
lib/isccfg/include/isccfg/grammar.h
lib/isccfg/namedconf.c
lib/isccfg/parser.c