src/types.c: Cope with multiple address families when dereferencing.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jun 2014 23:14:10 +0000 (00:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 13 Oct 2014 00:26:54 +0000 (01:26 +0100)
commitb5e689a3a40dd0b4bb14da39101e30ab6ec2a0c5
tree1429ff786741fa2d59ab280c51f3901b32102f78
parent8a8511e2c3670d08c0c257d3e11d95ea4276c20a
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 <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/types.c