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>
Thu, 2 Oct 2014 15:30:19 +0000 (16:30 +0100)
commitf1af5809ba842b5ca0799a8e085e92967976ac34
tree8038d1f96bf35bbc9d0b084cd08a09e03e57027c
parent6c65723d1c01a7640fd7e6ba6f85e6d29e9845df
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