mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +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
|
@ -14,6 +14,10 @@ const uint8_t IPAddr::v4_mapped_prefix[12] = { 0, 0, 0, 0,
|
|||
0, 0, 0, 0,
|
||||
0, 0, 0xff, 0xff };
|
||||
|
||||
const IPAddr IPAddr::v4_unspecified = IPAddr(in4_addr{});
|
||||
|
||||
const IPAddr IPAddr::v6_unspecified = IPAddr();
|
||||
|
||||
ConnIDKey BuildConnIDKey(const ConnID& id)
|
||||
{
|
||||
ConnIDKey key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue