mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Add type field to session::Key to help avoid collisions in map
This commit is contained in:
parent
30ab914cd8
commit
3a8047f535
4 changed files with 20 additions and 13 deletions
|
@ -113,7 +113,10 @@ public:
|
|||
// should be marked invalid.
|
||||
const detail::ConnKey& Key() const { return key; }
|
||||
session::detail::Key SessionKey(bool copy) const override
|
||||
{ return session::detail::Key{&key, sizeof(key), copy}; }
|
||||
{
|
||||
return session::detail::Key{
|
||||
&key, sizeof(key), session::detail::Key::CONNECTION_KEY_TYPE, copy};
|
||||
}
|
||||
|
||||
const IPAddr& OrigAddr() const { return orig_addr; }
|
||||
const IPAddr& RespAddr() const { return resp_addr; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue