From: Mohsin Kazmi Date: Thu, 18 Sep 2025 15:26:27 +0000 (+0000) Subject: snort: fix the libdaq required version X-Git-Tag: v26.02-rc0~15 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=c567c41902f7caa747154e0f633225ea3bb9d6b9;p=vpp.git snort: fix the libdaq required version Type: fix Signed-off-by: Mohsin Kazmi Change-Id: Iffc86d9a59a86c3acf3959ef4eb66c5379c8d659 --- diff --git a/src/plugins/snort/CMakeLists.txt b/src/plugins/snort/CMakeLists.txt index 0e23d191dcd..8a5b0003323 100644 --- a/src/plugins/snort/CMakeLists.txt +++ b/src/plugins/snort/CMakeLists.txt @@ -20,13 +20,13 @@ foreach(l ${daq_version}) endforeach() set(DAQ_VER "${DAQ_VERSION_MAJOR}.${DAQ_VERSION_MINOR}.${DAQ_VERSION_PATCH}") -if (NOT DAQ_VERSION_MAJOR MATCHES 3) - message(WARNING "-- libdaq version not supported - snort3 DAQ disabled") +if (${DAQ_VER} VERSION_LESS "3.0.21") + message(WARNING "-- libdaq version ${DAQ_VER} is old - required 3.0.21 - snort3 DAQ disabled") return() +else() + message(STATUS "snort plugin needs libdaq ${DAQ_VER} - found at ${LIBDAQ_LINK_LIBRARY}") endif() -message(STATUS "snort plugin needs libdaq ${DAQ_VER} - found at ${LIBDAQ_LINK_LIBRARY}") - add_vpp_plugin(snort SOURCES cli.c