chiark / gitweb /
src/adns.h, src/types.c: Now adns_rr_addr can hold a sockaddr_in6.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 1 Jun 2014 00:20:47 +0000 (01:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 19:39:46 +0000 (20:39 +0100)
commitb0a32b1750b230df79eb2d515519197c133d7a16
treecb6542cce6bba162950c3677a8269af98bfac998
parentf7b93d15be71e4f18ae53763f93553a2e8ac0a45
src/adns.h, src/types.c: Now adns_rr_addr can hold a sockaddr_in6.

This uses the recently introduced variable-size record structure
machinery so that only clients compiled against the new header file see
the larger record structure.

Note that we don't even try to actually do lookups for IPv6 addresses.
That will come later on.  This is just about sorting out the binary
interface.

Arrange that regress/case-brokenmail.sys asks for the correct record
size, because otherwise the answers get printed out wrongly.

[ I have done git-grep sizeof on a version of the head of this series
and found no un-corrected uses of sizeof(adns_rr_addr) -iwj. ]

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
regress/case-brokenmail.sys
regress/case-rr_addr-binary-compat.err [new file with mode: 0644]
regress/case-rr_addr-binary-compat.out [new file with mode: 0644]
regress/case-rr_addr-binary-compat.sys [new file with mode: 0644]
regress/init-distorted.text [new file with mode: 0644]
src/adns.h
src/types.c