Switch zeek:🆔:lookup to zeek:🆔:find

For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
Jon Siwek 2020-05-14 18:00:18 -07:00
parent 7843416e51
commit 4debad8caf
59 changed files with 339 additions and 339 deletions

View file

@ -411,7 +411,7 @@ bool Val::WouldOverflow(const BroType* from_type, const BroType* to_type, const
IntrusivePtr<TableVal> Val::GetRecordFields()
{
static auto record_field_table = zeek::id::lookup_type<TableType>("record_field_table");
static auto record_field_table = zeek::id::find_type<TableType>("record_field_table");
auto t = GetType().get();
if ( t->Tag() != TYPE_RECORD && t->Tag() != TYPE_TYPE )
@ -1931,7 +1931,7 @@ IntrusivePtr<VectorVal> TableVal::LookupSubnets(const SubNetVal* search)
if ( ! subnets )
reporter->InternalError("LookupSubnets called on wrong table type");
auto result = make_intrusive<VectorVal>(zeek::id::lookup_type<VectorType>("subnet_vec"));
auto result = make_intrusive<VectorVal>(zeek::id::find_type<VectorType>("subnet_vec"));
auto matches = subnets->FindAll(search);
for ( auto element : matches )