mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Remove GET_FIELD_AS macro, replace with template methods
This commit is contained in:
parent
a94fcad957
commit
4962986df1
15 changed files with 61 additions and 53 deletions
|
@ -369,11 +369,11 @@ bool Reporter::PermitFlowWeird(const char* name,
|
|||
|
||||
bool Reporter::PermitExpiredConnWeird(const char* name, const RecordVal& conn_id)
|
||||
{
|
||||
auto conn_tuple = std::make_tuple(conn_id.GetAddrField("orig_h"),
|
||||
conn_id.GetAddrField("resp_h"),
|
||||
conn_id.GetPortValField("orig_p")->Port(),
|
||||
conn_id.GetPortValField("resp_p")->Port(),
|
||||
conn_id.GetPortValField("resp_p")->PortType());
|
||||
auto conn_tuple = std::make_tuple(conn_id.GetFieldAs<AddrVal>("orig_h"),
|
||||
conn_id.GetFieldAs<AddrVal>("resp_h"),
|
||||
conn_id.GetFieldAs<PortVal>("orig_p")->Port(),
|
||||
conn_id.GetFieldAs<PortVal>("resp_p")->Port(),
|
||||
conn_id.GetFieldAs<PortVal>("resp_p")->PortType());
|
||||
|
||||
auto& map = expired_conn_weird_state[conn_tuple];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue