Squashed commit of the following:
commit
b0b8a306141597733b5361c88650c1f6bdb4fde9
Author: Sreeja Athirkandathil Narayanan <sathirka@cisco.com>
Date: Mon Sep 14 09:35:36 2020 -0400
appid: Check third party context version while deleting connections
if (tpsession)
{
- if (&(tpsession->get_ctxt()) == pkt_thread_tp_appid_ctxt)
+ if (pkt_thread_tp_appid_ctxt and
+ (tpsession->get_ctxt_version() == pkt_thread_tp_appid_ctxt->get_version()))
tpsession->delete_with_ctxt();
else
delete tpsession;
ThirdPartyAppIdSessionImpl(ThirdPartyAppIdContext& ctxt)
: ThirdPartyAppIdSession(ctxt)
{ }
- bool reset() override { return 1; }
+ void reset() override { }
void delete_with_ctxt() override { delete this; }
TPState process(const Packet&, AppidSessionDirection, vector<AppId>&,
ThirdPartyAppIDAttributeData&) override { return TP_STATE_INIT; }
#include "main/thread.h"
#include "tp_appid_types.h"
-#define THIRD_PARTY_APPID_API_VERSION 5
+#define THIRD_PARTY_APPID_API_VERSION 6
class ThirdPartyConfig
{
}
virtual ~ThirdPartyAppIdSession() { }
- virtual bool reset() = 0; // just reset state
+ virtual void reset() = 0; // just reset state
virtual void delete_with_ctxt() = 0;
virtual TPState process(const snort::Packet&,
AppidSessionDirection direction,