chiark / gitweb /
src/types.c: Support multiple address families in adns_rr_addr lookups.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 4 May 2014 17:51:35 +0000 (18:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 10 May 2014 16:58:52 +0000 (17:58 +0100)
commit5f8085b735dac86cc516b40bf5b8bc57763ab360
treec6d878dec79f427f0ed7f43f3fc37190b2b6230b
parent705b9b159806e6e96839c81668f685a6576ea961
src/types.c: Support multiple address families in adns_rr_addr lookups.

This is now largely working.  A query for adns_r_addr now causes (via a
new type hook) concurrent child queries for all of the wanted address
families; we then stitch the answers together and report the result.

Astonishingly, we have NS, MX, and SRV queries doing approximately the
right thing.

Significant pieces missing:

  * init flags and configuration aren't yet processed;

  * (pap_hostaddr) we should query for wanted rrtypes but which aren't
    in the additional section, even if we got some other rrtypes for the
    name;

  * CNAME records aren't handled at all.
src/adns.h
src/internal.h
src/query.c
src/reply.c
src/types.c