[Swan-commit] Changes to ref refs/heads/master
cagney at vault.libreswan.fi
Sun Aug 18 16:59:16 UTC 2019
Author: Andrew Cagney <cagney at gnu.org>
Date: Sat Aug 17 09:52:43 2019 -0400
ip: add address_is_specified() et.al., test
This means there's the mutually exclusive:
address_is_invalid() (really address_type() == NULL)
i.e., ip_address was initialized to zero
IPv6 calls this the unspecified address; headers
mash up the terms ANY and UNSPECIFIED.
AF_INET,AF_INET6, bytes != 0
(any other AF_* value will abort)
A more correct term for "specified" might be "unicast" (as in unicast,
anycast, multicast), but then there's the problem of a "unicast"
address being indistinguishable from an "anycast" address (and in
pluto "any" refers to the zero address, ulgh).
More information about the Swan-commit