]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4339: appid: using different api for picking appids
authorUmang Sharma (umasharm) <umasharm@cisco.com>
Fri, 7 Jun 2024 14:56:43 +0000 (14:56 +0000)
committerChris Sherwin (chsherwi) <chsherwi@cisco.com>
Fri, 7 Jun 2024 14:56:43 +0000 (14:56 +0000)
Merge in SNORT/snort3 from ~UMASHARM/snort3:appid_profiler_api to master

Squashed commit of the following:

commit 023c07e878b7a4668b99fd464263e022166c2ce6
Author: Umang Sharma <umasharm@cisco.com>
Date:   Mon Jun 3 21:52:58 2024 -0400

    appid: using different api for picking appids for appid cpu profiler

src/network_inspectors/appid/appid_session.cc

index 4a338e3b836f9035582bb5799b0c47e6c03fd60b..e5cf84dcc662eef632cba7cd115bbccb0a2b50a3 100644 (file)
@@ -141,7 +141,7 @@ AppIdSession::~AppIdSession()
      // Skip sessions using old odp context after reload detectors for appid cpu profiling
     if ((pkt_thread_odp_ctxt->get_version() == api.asd->get_odp_ctxt_version()) and api.asd->get_odp_ctxt().is_appid_cpu_profiler_running())
     {
-        api.asd->get_odp_ctxt().get_appid_cpu_profiler_mgr().check_appid_cpu_profiler_table_entry(api.asd, api.service.get_id(), api.client.get_id(), api.payload.get_id(), api.get_misc_app_id());
+        api.asd->get_odp_ctxt().get_appid_cpu_profiler_mgr().check_appid_cpu_profiler_table_entry(api.asd, api.get_service_app_id(), api.get_client_app_id(), api.get_payload_app_id(), api.get_misc_app_id());
     }
 
     if (!in_expected_cache)
@@ -422,7 +422,7 @@ void AppIdSession::check_tunnel_detection_restart()
 
     if (odp_ctxt.is_appid_cpu_profiler_running())
     {
-        odp_ctxt.get_appid_cpu_profiler_mgr().check_appid_cpu_profiler_table_entry(api.asd, api.service.get_id(), api.client.get_id(), api.payload.get_id(), api.get_misc_app_id());
+        odp_ctxt.get_appid_cpu_profiler_mgr().check_appid_cpu_profiler_table_entry(api.asd, api.get_service_app_id(), api.get_client_app_id(), api.get_payload_app_id(), api.get_misc_app_id());
         this->stats.processing_time = 0;
         this->stats.cpu_profiler_pkt_count = 0;
     }