[Swan-commit] Changes to ref refs/heads/master
Andrew Cagney
cagney at vault.libreswan.fi
Sun Aug 18 16:59:16 UTC 2019
New commits:
commit a082cee331dce836681819a0087cf31a9f928d9f
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)
AF_UNSPEC==0
i.e., ip_address was initialized to zero
address_is_any()
AF_INET,AF_INET6; bytes==0;
IPv6 calls this the unspecified address; headers
mash up the terms ANY and UNSPECIFIED.
address_is_specified()
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
mailing list