mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
analyzer/Manager: to_ptr() example
This commit is contained in:
parent
aa168ca137
commit
58482975ca
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ void Manager::ScheduleAnalyzer(const IPAddr& orig, const IPAddr& resp, uint16_t
|
||||||
}
|
}
|
||||||
|
|
||||||
void Manager::ScheduleAnalyzer(const IPAddr& orig, const IPAddr& resp, PortVal* resp_p, Val* analyzer, double timeout) {
|
void Manager::ScheduleAnalyzer(const IPAddr& orig, const IPAddr& resp, PortVal* resp_p, Val* analyzer, double timeout) {
|
||||||
EnumValPtr ev{NewRef{}, analyzer->AsEnumVal()};
|
auto ev = to_ptr<EnumVal>(analyzer);
|
||||||
return ScheduleAnalyzer(orig, resp, resp_p->Port(), resp_p->PortType(), zeek::Tag(std::move(ev)), timeout);
|
return ScheduleAnalyzer(orig, resp, resp_p->Port(), resp_p->PortType(), zeek::Tag(std::move(ev)), timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue