mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Move IP Addr/Prefix/Header classes into namespaces
This commit is contained in:
parent
35c61697d9
commit
25c0fc7ab2
100 changed files with 495 additions and 460 deletions
|
@ -136,7 +136,7 @@ struct val_converter {
|
|||
if ( type->Tag() == zeek::TYPE_ADDR )
|
||||
{
|
||||
auto bits = reinterpret_cast<const in6_addr*>(&a.bytes());
|
||||
return zeek::make_intrusive<zeek::AddrVal>(IPAddr(*bits));
|
||||
return zeek::make_intrusive<zeek::AddrVal>(zeek::IPAddr(*bits));
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
@ -147,7 +147,7 @@ struct val_converter {
|
|||
if ( type->Tag() == zeek::TYPE_SUBNET )
|
||||
{
|
||||
auto bits = reinterpret_cast<const in6_addr*>(&a.network().bytes());
|
||||
return zeek::make_intrusive<zeek::SubNetVal>(IPPrefix(IPAddr(*bits), a.length()));
|
||||
return zeek::make_intrusive<zeek::SubNetVal>(zeek::IPPrefix(zeek::IPAddr(*bits), a.length()));
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue