mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Update deprecated ValManager::GetPort usages
This commit is contained in:
parent
de8761f761
commit
d7be84de97
24 changed files with 68 additions and 74 deletions
|
@ -22,9 +22,9 @@ RecordVal* EncapsulatingConn::GetRecordVal() const
|
|||
|
||||
auto id_val = make_intrusive<RecordVal>(conn_id);
|
||||
id_val->Assign(0, make_intrusive<AddrVal>(src_addr));
|
||||
id_val->Assign(1, val_mgr->GetPort(ntohs(src_port), proto));
|
||||
id_val->Assign(1, val_mgr->Port(ntohs(src_port), proto));
|
||||
id_val->Assign(2, make_intrusive<AddrVal>(dst_addr));
|
||||
id_val->Assign(3, val_mgr->GetPort(ntohs(dst_port), proto));
|
||||
id_val->Assign(3, val_mgr->Port(ntohs(dst_port), proto));
|
||||
rv->Assign(0, std::move(id_val));
|
||||
rv->Assign(1, BifType::Enum::Tunnel::Type->GetVal(type));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue