chiark / gitweb /
ipv6: introduce union iaddr
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 26 Feb 2014 15:57:21 +0000 (15:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Oct 2014 15:30:20 +0000 (16:30 +0100)
commitc041f99241ba53c0836c3eb63f8b4b6b92bfc135
tree1609d336bcac59db393e61aa25431a34338e188c
parent16f21d687de8d4f071df36aa7c2fd4b57ed53f88
ipv6: introduce union iaddr

Replace many occurrences of sockaddr_in by a new union, iaddr.

Everywhere that fills in an address has been modified to look into the
subfields of iaddr.  But there is not yet any support for a union
iaddr to contain anything other than a sockaddr_in.  This will be
added gradually in forthcoming patches, starting at consumers and
working back.

Additionally, a couple of places that specified a port and address as
a uint16_t and uint32_t have been converted.

We have changed only transport addresses - that is, addresses on the
public network.  VPN addresses remain IPv4 only.

We provide a few helper functions for manipulating union iaddr, such
as iaddr_to_string (which replaces saddr_to_string).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
resolver.c
secnet.h
udp.c
util.c
util.h