comm etc.: Provide comm_addr_equal
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Oct 2014 11:03:21 +0000 (12:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Oct 2014 20:27:28 +0000 (21:27 +0100)
commit2093fb5ca832669236d9e4e8b6475a14b96b3d2a
treeb7af11808ec654f45894eac717f00ba4e3f8b92f
parenta32d56fb47ceff7404072e49a21290fc7314a7c3
comm etc.: Provide comm_addr_equal

Abolish the rule that a comm_addr has zeroes in all its holes.
Provide comm_addr_equal instead.

We can get rid of a lot of calls to FILLZERO.

In resolver.c we no longer need to copy the fields of ia individually.
We still need to look at the incoming address family since util.c
aborts on unknown AFs and adns (perhaps a new version or something)
might have sent us things we don't understand.  (Also reorganise the
loop/switch a little to get `wslot++' out of the `case'.)

We have to move the declaration of iaddr_equal.

Abolish transport_addrs_equal and replace it at call sites with the
new comm_addr_equal.

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