Add/use unspecified IPAddr constants

The analyzer-scheduling code was otherwise frequently converting the
unspecified v4/v6 addresses from strings.
This commit is contained in:
Jon Siwek 2019-08-23 11:15:02 -04:00
parent 48873570b5
commit ba929ce2c4
3 changed files with 18 additions and 4 deletions

View file

@ -430,6 +430,16 @@ public:
return ConvertString(s, &tmp);
}
/**
* Unspecified IPv4 addr, "0.0.0.0".
*/
static const IPAddr v4_unspecified;
/**
* Unspecified IPv6 addr, "::".
*/
static const IPAddr v6_unspecified;
private:
friend class IPPrefix;