From: Mark Wooding Date: Tue, 10 Jun 2014 23:14:10 +0000 (+0100) Subject: src/types.c: Cope with multiple address families when dereferencing. X-Git-Tag: adns-1.5.0-rc0~63 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/2ca5496dfc95d6e40596d9f1d83929cc5a3bc495?hp=2ca5496dfc95d6e40596d9f1d83929cc5a3bc495 src/types.c: Cope with multiple address families when dereferencing. The pap_findaddrs/pap_hostaddr machinery is improved to cope with multiple address families. First of all, we must find out which families are wanted, using addr_rrtypes. Then we keep track of which address types are satisfied from the additional section, during pap_findaddrs, and submit addr subqueries to look them up. We no longer issue the top-level addr query: we handle the individual subqueries ourselves, because we have to merge the results onto the existing vector of addresses. Signed-off-by: Mark Wooding Signed-off-by: Ian Jackson ---