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)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:42 +0000 (09:57 +0100)
commit6d8b6d6ec36f44bb72b1cd6afba0721a3bed8b3f
tree15293bc2f90211b866e5258b215598043015ca21
parent5eaf1a9a5c1578ecc2a1fd83114be392d8808d09
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