chiark / gitweb /
src/: Support IPv6 addresses in `sortlist'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 3 May 2014 10:46:12 +0000 (11:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 10 May 2014 13:31:40 +0000 (14:31 +0100)
commit9136cf0c3b0a026600a201975f9d21a1b5031763
treeeed810a159f890c309bcbd5128ce2f799d337204
parent67dcc3b16a3fbae06404b07cb1d7980d02a20175
src/: Support IPv6 addresses in `sortlist'.

This involves a fair amount of messing about.  There's a new file
`addrfam.c' containing a number of address-family-specific facts and
utilities, packaged together in a handy structure.  The `sortlist'
representation now attaches one of these to each entry, and now keeps
a union of possible address types.

Lookup of addresses in the sortlist is also modified, to check the
address family before going any further.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
client/adh-main.c
client/adh-opts.c
src/addrfam.c [new file with mode: 0644]
src/adns.h
src/adns.make
src/check.c
src/internal.h
src/setup.c
src/types.c