From: Sreeja Athirkandathil Narayanan (sathirka) Date: Wed, 23 Nov 2022 17:50:51 +0000 (+0000) Subject: Pull request #3672: appid: Make appid availability independent from TP state X-Git-Tag: 3.1.48.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe65a7fe45ea9c506431c4e94c3ee1f41c0bd45;p=thirdparty%2Fsnort3.git Pull request #3672: appid: Make appid availability independent from TP state Merge in SNORT/snort3 from ~OSTEPANO/snort3:appid_availability_without_navl to master Squashed commit of the following: commit 4649cdf312728e5d7b60648b9f154da43a268adf Author: Oleksandr Stepanov Date: Thu Nov 17 08:09:36 2022 -0500 appid: Make appid availability independent from TP state --- diff --git a/src/network_inspectors/appid/appid_session_api.cc b/src/network_inspectors/appid/appid_session_api.cc index 3f0b65825..8e609b995 100644 --- a/src/network_inspectors/appid/appid_session_api.cc +++ b/src/network_inspectors/appid/appid_session_api.cc @@ -252,10 +252,8 @@ bool AppIdSessionApi::is_appid_available(uint32_t stream_index) const if (service.get_id() == APP_ID_HTTP2 or service.get_id() == APP_ID_HTTP3) return (get_payload_app_id(stream_index) != APP_ID_NONE); else - return ( (service.get_id() != APP_ID_NONE or - payload.get_id() != APP_ID_NONE) and - (asd->is_tp_appid_available() or - asd->get_session_flags(APPID_SESSION_NO_TPI)) ); + return (service.get_id() != APP_ID_NONE or + payload.get_id() != APP_ID_NONE); } const char* AppIdSessionApi::get_client_info(uint32_t stream_index) const