[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Wed Dec 30 22:19:23 UTC 2020
New commits:
commit 2968d969e58a620cd70395717e369ca2228d7361
Author: Andrew Cagney <cagney at gnu.org>
Date: Wed Dec 30 17:03:41 2020 -0500
ip: eliminate isanyaddr()
Follow-up 4fb0dc5ff36163a34a284a0b86e7d36520b5d5d7 by inlining the
simplified expression at all call sites.
This way "any" only means %any(0.0.0.0) or %any6(::) and not an
"unset" address.
This also exposes some redundancy, vis:
if (address_type(&c->spd.this.host_srcip) == NULL ||
+ address_is_unset(&c->spd.this.host_srcip) ||
+ address_eq_any(&c->spd.this.host_srcip)) {
the checks address_type()==NULL and address_is_unset() are equivalent.
More information about the Swan-commit
mailing list