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)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:42 +0000 (09:57 +0100)
commitc272620c7a5ea385f0c916f8b2d769ca1fdd38c9
tree78e9aaa0dabf65780ca97eb0b5639cf6c6ab0c12
parent6d8b6d6ec36f44bb72b1cd6afba0721a3bed8b3f
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>
src/types.c