mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
use differentiated record field accessors
This commit is contained in:
parent
e363bab55f
commit
931cec4e06
10 changed files with 21 additions and 15 deletions
|
@ -631,7 +631,7 @@ void Connection::CheckFlowLabel(bool is_orig, uint32_t flow_label)
|
|||
{
|
||||
if ( conn_val )
|
||||
{
|
||||
RecordVal* endp = conn_val->GetField(is_orig ? 1 : 2)->AsRecordVal();
|
||||
RecordVal* endp = conn_val->GetFieldAs<RecordVal>(is_orig ? 1 : 2);
|
||||
endp->Assign(4, val_mgr->Count(flow_label));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue