]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3731: fp_create: add showing the search algorithm name
authorOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Wed, 18 Jan 2023 16:37:52 +0000 (16:37 +0000)
committerOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Wed, 18 Jan 2023 16:37:52 +0000 (16:37 +0000)
Merge in SNORT/snort3 from ~YCHALOV/snort3:hyperscan to master

Squashed commit of the following:

commit 67b1c5d4412a2cedea75b8396843fc8555a8e59e
Author: Yurii Chalov <ychalov@cisco.com>
Date:   Wed Jan 11 20:28:44 2023 +0100

    detection: show search algorithm configured

src/detection/fp_create.cc

index 128eb8f5dee19930be0b36bf9d7e55ae1f36226d..f623ab00be18282be7bf91df70b5ec883296ffbf 100644 (file)
@@ -1610,7 +1610,9 @@ int fpCreateFastPacketDetection(SnortConfig* sc)
 
     if ( mpse_count )
     {
-        LogLabel("search engine");
+        auto method = fp->get_search_method();
+        string search_label = "search engine (" + string(method ? method : "unspecified") + ")";
+        LogLabel(search_label.c_str());
         MpseManager::print_mpse_summary(fp->get_search_api());
     }