From 6b7c62d83ea1b589c3115d959867e0fcbfcf74ea Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 7 Apr 2024 14:27:48 +0200 Subject: [PATCH] xt_ipp2p: document BM textsearch as hard requirement --- INSTALL.rst | 6 +++++- extensions/xt_ipp2p.c | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/INSTALL.rst b/INSTALL.rst index 3eba595..e7914a6 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -24,7 +24,11 @@ Supported configurations for this release * ``CONFIG_NF_CONNTRACK_MARK`` enabled =y or as module (=m) * ``CONFIG_CONNECTOR`` y/m if you wish to receive userspace - notifications from pknock through netlink/connector + notifications from pknock through netlink/connector (if not, edit the + ``mconfig`` file in Xtables-addons to exclude pknock) + + * ``CONFIG_TEXTSEARCH_BM`` y/m if you wish to use xt_ipp2p (if not, edit the + ``mconfig`` file in Xtables-addons to exclude ipp2p) (Use xtables-addons-1.x if you need support for Linux < 3.7. Use xtables-addons-2.x if you need support for Linux < 4.15. diff --git a/extensions/xt_ipp2p.c b/extensions/xt_ipp2p.c index eba0b55..0eb3190 100644 --- a/extensions/xt_ipp2p.c +++ b/extensions/xt_ipp2p.c @@ -9,6 +9,9 @@ #include #include "xt_ipp2p.h" #include "compat_xtables.h" +#if !defined(CONFIG_TEXTSEARCH_BM) && !defined(CONFIG_TEXTSEARCH_BM_MODULE) +# error CONFIG_TEXTSEARCH_BM=y/m is required for ipp2p. Either enable textsearch in your kernel ".config" file, or disable ipp2p in the "mconfig" file in Xtables-addons. +#endif //#define IPP2P_DEBUG_ARES //#define IPP2P_DEBUG_SOUL -- 2.47.3