From: Colin Vidal Date: Thu, 30 Oct 2025 18:37:05 +0000 (+0100) Subject: remove sun_path field from isc_netaddr X-Git-Tag: v9.21.15~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6601a301233b03847f6da06077db6cb819c8969a;p=thirdparty%2Fbind9.git remove sun_path field from isc_netaddr The sun_path field is not used anymore, and consumes over a hundred bytes for every isc_netaddr_t object. Remove it. As isc_netaddr_t is used in cfg_obj_t, in some huge configuration trees (e.g., a million zones), the gain is almost 1GB of resident memory. --- diff --git a/lib/isc/include/isc/netaddr.h b/lib/isc/include/isc/netaddr.h index 6e7004a9a99..2aa229d218f 100644 --- a/lib/isc/include/isc/netaddr.h +++ b/lib/isc/include/isc/netaddr.h @@ -32,7 +32,6 @@ struct isc_netaddr { union { struct in_addr in; struct in6_addr in6; - char un[sizeof(((struct sockaddr_un *)0)->sun_path)]; } type; uint32_t zone; };