mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Tunnel decapsulation bugfix when FlipRoles is called.
If FlipRoles() is called the conn_val in Conn.cc gets Unref'ed and thus my tunnel_partent RecordVal was lost. Fixing this.
This commit is contained in:
parent
ae1eb5379b
commit
08dc84a250
5 changed files with 64 additions and 37 deletions
|
@ -23,6 +23,7 @@ class RuleHdrTest;
|
|||
class Specific_RE_Matcher;
|
||||
class TransportLayerAnalyzer;
|
||||
class RuleEndpointState;
|
||||
class TunnelParent;
|
||||
|
||||
typedef enum {
|
||||
NUL_IN_LINE,
|
||||
|
@ -86,7 +87,7 @@ class Analyzer;
|
|||
|
||||
class Connection : public BroObj {
|
||||
public:
|
||||
Connection(NetSessions* s, HashKey* k, double t, const ConnID* id, RecordVal *arg_tunnel_parent);
|
||||
Connection(NetSessions* s, HashKey* k, double t, const ConnID* id, TunnelParent *arg_tunnel_parent);
|
||||
virtual ~Connection();
|
||||
|
||||
// Invoked when connection is about to be removed. Use Ref(this)
|
||||
|
@ -335,7 +336,7 @@ protected:
|
|||
double inactivity_timeout;
|
||||
RecordVal* conn_val;
|
||||
LoginConn* login_conn; // either nil, or this
|
||||
RecordVal* tunnel_parent; // nil if not tunneled
|
||||
TunnelParent* tunnel_parent; // nil if not tunneled
|
||||
int suppress_event; // suppress certain events to once per conn.
|
||||
|
||||
unsigned int installed_status_timer:1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue