mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Remove BroValUnion by hoisting underlying Val subclass values into subclasses
This commit is contained in:
parent
49ca8e2163
commit
7f92a573d2
29 changed files with 632 additions and 512 deletions
|
@ -44,7 +44,7 @@ function precompile_pcap_filter%(id: PcapFilterID, s: string%): bool
|
|||
bool success = true;
|
||||
|
||||
zeek::iosource::PktSrc* ps = zeek::iosource_mgr->GetPktSrc();
|
||||
if ( ps && ! ps->PrecompileFilter(id->ForceAsInt(), s->CheckString()) )
|
||||
if ( ps && ! ps->PrecompileFilter(id->AsInt(), s->CheckString()) )
|
||||
success = false;
|
||||
|
||||
return zeek::val_mgr->Bool(success);
|
||||
|
@ -73,7 +73,7 @@ function Pcap::install_pcap_filter%(id: PcapFilterID%): bool
|
|||
bool success = true;
|
||||
|
||||
zeek::iosource::PktSrc* ps = zeek::iosource_mgr->GetPktSrc();
|
||||
if ( ps && ! ps->SetFilter(id->ForceAsInt()) )
|
||||
if ( ps && ! ps->SetFilter(id->AsInt()) )
|
||||
success = false;
|
||||
|
||||
return zeek::val_mgr->Bool(success);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue