mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Trim the list of "global type pointers" from NetVar.h further
Most of them are deprecated now, with usage sites now doing the lookup themselves.
This commit is contained in:
parent
d34b24e776
commit
9210d443d3
26 changed files with 290 additions and 315 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "File.h"
|
||||
#include "Reporter.h"
|
||||
#include "module_util.h"
|
||||
#include "Var.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -79,7 +80,8 @@ RuleHdrTest::RuleHdrTest(Prot arg_prot, Comp arg_comp, vector<IPPrefix> arg_v)
|
|||
Val* RuleMatcher::BuildRuleStateValue(const Rule* rule,
|
||||
const RuleEndpointState* state) const
|
||||
{
|
||||
RecordVal* val = new RecordVal(zeek::vars::signature_state);
|
||||
static auto signature_state = zeek::lookup_type<RecordType>("signature_state");
|
||||
RecordVal* val = new RecordVal(signature_state);
|
||||
val->Assign(0, make_intrusive<StringVal>(rule->ID()));
|
||||
val->Assign(1, state->GetAnalyzer()->ConnVal());
|
||||
val->Assign(2, val_mgr->Bool(state->is_orig));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue