chiark / gitweb /
src/types.c: Better record parsing for addr queries.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jun 2014 23:03:17 +0000 (00:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 13 Oct 2014 00:26:47 +0000 (01:26 +0100)
commit8a8511e2c3670d08c0c257d3e11d95ea4276c20a
treeec0bad0c7e766c72eaf0f0ce544bff7f33082ad9
parent92c8ebba9f1778ac614eb1b3288d3cc56cf8b07d
src/types.c: Better record parsing for addr queries.

The parser now needs to know which kind of record it's meant to be
dealing with, so that it can convert it into the right kind of socket
address.  As a result, pap_findaddrs needs to pass in the right record
type when parsing addresses from the additional section, so we separate
out the main work into a separate function.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
src/types.c