From: Oleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) Date: Wed, 18 Jan 2023 16:37:52 +0000 (+0000) Subject: Pull request #3731: fp_create: add showing the search algorithm name X-Git-Tag: 3.1.53.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cdf010a9353a3eeb3b70e1a4ce6458c631f4708;p=thirdparty%2Fsnort3.git Pull request #3731: fp_create: add showing the search algorithm name Merge in SNORT/snort3 from ~YCHALOV/snort3:hyperscan to master Squashed commit of the following: commit 67b1c5d4412a2cedea75b8396843fc8555a8e59e Author: Yurii Chalov Date: Wed Jan 11 20:28:44 2023 +0100 detection: show search algorithm configured --- diff --git a/src/detection/fp_create.cc b/src/detection/fp_create.cc index 128eb8f5d..f623ab00b 100644 --- a/src/detection/fp_create.cc +++ b/src/detection/fp_create.cc @@ -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()); }