mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Switch zeek:🆔:lookup to zeek:🆔:find
For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
parent
7843416e51
commit
4debad8caf
59 changed files with 339 additions and 339 deletions
|
@ -81,7 +81,7 @@ NetSessions::NetSessions()
|
|||
|
||||
dump_this_packet = false;
|
||||
num_packets_processed = 0;
|
||||
static auto pkt_profile_file = zeek::id::lookup_val("pkt_profile_file");
|
||||
static auto pkt_profile_file = zeek::id::find_val("pkt_profile_file");
|
||||
|
||||
if ( pkt_profile_mode && pkt_profile_freq > 0 && pkt_profile_file )
|
||||
pkt_profiler = new PacketProfiler(pkt_profile_mode,
|
||||
|
@ -1219,7 +1219,7 @@ bool NetSessions::IsLikelyServerPort(uint32_t port, TransportProto proto) const
|
|||
|
||||
if ( ! have_cache )
|
||||
{
|
||||
auto likely_server_ports = zeek::id::lookup_val<TableVal>("likely_server_ports");
|
||||
auto likely_server_ports = zeek::id::find_val<TableVal>("likely_server_ports");
|
||||
auto lv = likely_server_ports->ToPureListVal();
|
||||
for ( int i = 0; i < lv->Length(); i++ )
|
||||
port_cache.insert(lv->Idx(i)->InternalUnsigned());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue