mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28: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
|
@ -346,11 +346,11 @@ Connection* NetSessions::FindConnection(Val* v)
|
|||
// types, too.
|
||||
}
|
||||
|
||||
const IPAddr& orig_addr = vl->GetAddrField(orig_h);
|
||||
const IPAddr& resp_addr = vl->GetAddrField(resp_h);
|
||||
const IPAddr& orig_addr = vl->GetFieldAs<AddrVal>(orig_h);
|
||||
const IPAddr& resp_addr = vl->GetFieldAs<AddrVal>(resp_h);
|
||||
|
||||
const PortVal* orig_portv = vl->GetPortValField(orig_p);
|
||||
const PortVal* resp_portv = vl->GetPortValField(resp_p);
|
||||
const PortVal* orig_portv = vl->GetFieldAs<PortVal>(orig_p);
|
||||
const PortVal* resp_portv = vl->GetFieldAs<PortVal>(resp_p);
|
||||
|
||||
ConnID id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue