chiark / gitweb /
src/types.c: Start on IPv6 support in adns_r_addr queries.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jun 2014 22:44:13 +0000 (23:44 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:42 +0000 (09:57 +0100)
commit5eaf1a9a5c1578ecc2a1fd83114be392d8808d09
tree5995448c4bca27e21f871d8d83e28501ff72439d
parent898e91b9a35587c35a2e1b65d814cb2b7196943d
src/types.c: Start on IPv6 support in adns_r_addr queries.

The way addr queries work internally is now very different.  The
toplevel query is now `virtual', and exists to spawn subqueries for each
applicable address type (currently hardcoded to A only, but this will
change later).

The toplevel query has a callback function which assembles its answer
from the various child queries, and there's a collection of support
machinery too.  (Some of the bookkeeping done during this may seem
unnecessary, but it will come in handy later.)

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