Merge in SNORT/snort3 from ~KBHANDAN/snort3:file_concurrent to master
Squashed commit of the following:
commit
0ff38afdada8f56ad977b9acb68eb96cad4e0e56
Author: Kaushal Bhandankar <kbhandan@cisco.com>
Date: Mon Oct 2 14:08:21 2023 +0530
appid: Support to get correct http session based on stream_id
return get_hsession(stream_index);
}
+const AppIdHttpSession* AppIdSessionApi::get_matching_http_session(int64_t stream_id) const
+{
+ for (uint32_t stream_index=0; stream_index < hsessions.size(); stream_index++)
+ {
+ if(stream_id == hsessions[stream_index]->get_httpx_stream_id())
+ return hsessions[stream_index];
+ }
+ return nullptr;
+}
+
AppIdHttpSession* AppIdSessionApi::get_hsession(uint32_t stream_index) const
{
if (stream_index < hsessions.size())
uint16_t get_service_port() const;
const AppIdDnsSession* get_dns_session() const;
const AppIdHttpSession* get_http_session(uint32_t stream_index = 0) const;
+ const AppIdHttpSession* get_matching_http_session(int64_t stream_id) const;
const char* get_tls_host() const;
bool is_http_inspection_done() const;
const char* get_netbios_name() const;