chiark / gitweb /
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>
Sun, 19 Oct 2014 20:09:57 +0000 (21:09 +0100)
commit2ca5496dfc95d6e40596d9f1d83929cc5a3bc495
tree1429ff786741fa2d59ab280c51f3901b32102f78
parent908dbcfa12ef7ce1b5ad80fd212cfb653af12911
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