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>
Sun, 5 Oct 2014 20:06:28 +0000 (21:06 +0100)
commitcc4206168fb95a0dcd96c2e1f8243e9fd6f4589b
tree01f6da88ef73de50320e468a7230a3cf9d3b69bf
parent45a14422b2f842667486ce171917e2d9019fdf63
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