mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
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:
parent
48873570b5
commit
ba929ce2c4
3 changed files with 18 additions and 4 deletions
10
src/IPAddr.h
10
src/IPAddr.h
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue