mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Switch to virtualized use of new zeek::ConnKey class tree
This touches quite a few places, but each just swaps out existing APIs and/or zeek::detail::ConnKey instances.
This commit is contained in:
parent
b8f82ff659
commit
52d6228b06
14 changed files with 158 additions and 65 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "zeek/packet_analysis/Analyzer.h"
|
||||
#include "zeek/session/Key.h"
|
||||
|
||||
#include "packet_analysis/protocol/gtpv1/gtpv1_pac.h"
|
||||
|
||||
|
|
@ -27,11 +28,10 @@ public:
|
|||
gtp_hdr_val = std::move(val);
|
||||
}
|
||||
|
||||
void RemoveConnection(const zeek::detail::ConnKey& conn_key) { conn_map.erase(conn_key); }
|
||||
void RemoveConnection(const zeek::session::detail::Key& conn_key) { conn_map.erase(conn_key); }
|
||||
|
||||
protected:
|
||||
using ConnMap = std::map<zeek::detail::ConnKey, std::unique_ptr<binpac::GTPv1::GTPv1_Conn>>;
|
||||
ConnMap conn_map;
|
||||
std::map<zeek::session::detail::Key, std::unique_ptr<binpac::GTPv1::GTPv1_Conn>> conn_map;
|
||||
|
||||
int inner_packet_offset = -1;
|
||||
uint8_t next_header = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue