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>
Sun, 19 Oct 2014 20:09:56 +0000 (21:09 +0100)
commit908dbcfa12ef7ce1b5ad80fd212cfb653af12911
treeec0bad0c7e766c72eaf0f0ce544bff7f33082ad9
parent9d138734ee5af9b79ea81529f54971dbc60c968c
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