From 2e9027fd5a9b7de6e009f5ba65cfbe90d1d111f4 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 27 Oct 2025 22:04:59 +0100 Subject: [PATCH] plugins: update SC_API_VERSION to 9 So that plugins built for 8 will fail to load with 9 as there were already breaking changes in the structures and functions prototypes --- rust/sys/src/sys.rs | 2 +- src/suricata-plugin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/sys/src/sys.rs b/rust/sys/src/sys.rs index 314daecc4d..cc2945242a 100644 --- a/rust/sys/src/sys.rs +++ b/rust/sys/src/sys.rs @@ -60,7 +60,7 @@ extern "C" { alproto: AppProto, proto_name: *const ::std::os::raw::c_char, ); } -pub const SC_API_VERSION: u64 = 2048; +pub const SC_API_VERSION: u64 = 2304; #[doc = " Structure to define a Suricata plugin."] #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/src/suricata-plugin.h b/src/suricata-plugin.h index 612596b875..a89f42ce43 100644 --- a/src/suricata-plugin.h +++ b/src/suricata-plugin.h @@ -32,7 +32,7 @@ // Do not reuse autoconf PACKAGE_VERSION which is a string // Defined as major version.minor version (no patch version) -static const uint64_t SC_API_VERSION = 0x0800; +static const uint64_t SC_API_VERSION = 0x0900; #define SC_PACKAGE_VERSION PACKAGE_VERSION /**