Merge in SNORT/snort3 from ~ABHPAL/snort3:h3 to master
Squashed commit of the following:
commit
2ae655a6a07a27f45b6b6ecb23665c0dc40eabb5
Author: Abhijit Pal(abhpal) <abhpal@cisco.com>
Date: Mon Jan 23 18:08:36 2023 +0530
flow: add stream interface to get parent flow from child flow
virtual void set_stream_flow_data(Flow* flow, FlowData* flow_data) = 0;
virtual void get_stream_id(const Flow* flow, int64_t& stream_id) = 0;
virtual AppId get_appid_from_stream(const Flow*) { return APP_ID_NONE; }
+ // Stream based flows should override this interface to return parent flow
+ // when child flow is passed as input
+ virtual Flow* get_stream_parent_flow(Flow* cflow) { return cflow; }
};
// this struct is organized by member size for compactness