From: Masud Hasan (mashasan) Date: Wed, 13 Oct 2021 14:33:19 +0000 (+0000) Subject: Merge pull request #3100 in SNORT/snort3 from ~SMINUT/snort3:hosts_lua to master X-Git-Tag: 3.1.15.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9699a9f7c12ee24d5a06e4c0761dccba6057c33;p=thirdparty%2Fsnort3.git Merge pull request #3100 in SNORT/snort3 from ~SMINUT/snort3:hosts_lua to master Squashed commit of the following: commit 1a4a55d21c0f95ac0e128c5654490719acdfdef2 Author: Silviu Minut Date: Mon Oct 11 18:21:09 2021 -0400 rna: do not do service discovery for future flows --- diff --git a/src/network_inspectors/rna/rna_app_discovery.cc b/src/network_inspectors/rna/rna_app_discovery.cc index 3b0cf191d..e810ff6d8 100644 --- a/src/network_inspectors/rna/rna_app_discovery.cc +++ b/src/network_inspectors/rna/rna_app_discovery.cc @@ -77,8 +77,9 @@ void RnaAppDiscovery::process(AppidEvent* appid_event, DiscoveryFilter& filter, { AppId client, payload; appid_session_api.get_app_id(nullptr, &client, &payload, nullptr, nullptr); + bool is_future_flow = appid_session_api.get_appid_session_attribute(APPID_SESSION_FUTURE_FLOW); - if ( appid_change_bits[APPID_SERVICE_BIT] and service > APP_ID_NONE ) + if ( appid_change_bits[APPID_SERVICE_BIT] and service > APP_ID_NONE and !is_future_flow) { if ( service == APP_ID_DHCP ) {