chiark / gitweb /
resolver: construct comm_addr; honour multiple addresses from the resolver
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Jun 2014 16:32:34 +0000 (17:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Sep 2014 17:48:10 +0000 (18:48 +0100)
commitee226369193a35e6883d1031261205d2db4693b9
treed2fb30e1551d9b8e747259249913674dc972d7fd
parentc0f98550914a4c7ad47c7520ece73ab474c9a818
resolver: construct comm_addr; honour multiple addresses from the resolver

We move construction of the comm_addr into the resolver.  The comm_if
and port are supplied to it by site and filled in by the resolver.
This allows the resolver to return a complete comm_addr array.

While we're here, we make an adns_r_addr query instead of an adns_r_a
query.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
resolver.c
secnet.h
site.c