From c567c41902f7caa747154e0f633225ea3bb9d6b9 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 18 Sep 2025 15:26:27 +0000 Subject: [PATCH] snort: fix the libdaq required version Type: fix Signed-off-by: Mohsin Kazmi Change-Id: Iffc86d9a59a86c3acf3959ef4eb66c5379c8d659 --- src/plugins/snort/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.16.6