MINOR: resolvers: merge address and target into a union "data"
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 20:52:04 +0000 (22:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 10:38:06 +0000 (11:38 +0100)
commit87c1969ef2dde16a07401becbe33edb9753fff4c
tree682e636eb51269b99860a4f462b5a9eebfd79bf4
parent342b785ad5ccbcadf7d60b881c349c21b2d7d6d4
MINOR: resolvers: merge address and target into a union "data"

These two fields are exclusive as they depend on the data type.
Let's move them into a union to save some precious bytes. This
reduces the struct resolv_answer_item size from 600 to 576 bytes.

(cherry picked from commit cc8fd4c0404523101f4d1473bcd8589086da022d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 20a023765963c22d7b57ebe41493be848b63669c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/dns-t.h
src/dns.c