]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pf-ring: load plugin by default
authorJason Ish <jason.ish@oisf.net>
Tue, 9 Jul 2024 22:42:04 +0000 (16:42 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Jul 2024 12:25:34 +0000 (14:25 +0200)
Ticket: #7162

configure.ac
suricata.yaml.in

index 0626a16f58ac748823d8ea3ff5eb060a7123fe97..fbd939262354ccf1e57e5d0fbe172510275eb331 100644 (file)
 
     if test "x$enable_pfring" = "xyes"; then
         AM_CONDITIONAL([BUILD_PFRING], [true])
+        pfring_comment=""
     else
         AM_CONDITIONAL([BUILD_PFRING], [false])
+        pfring_comment="#"
     fi
+    AC_SUBST([pfring_comment])
 
   # AF_PACKET support
     AC_ARG_ENABLE(af-packet,
index d0e4bcd3c9ac230d656110f74af5b658dfcc771b..de46b1f253628d2fedbc20bc1d92f5da97e4b5d3 100644 (file)
@@ -80,7 +80,8 @@ stats:
 
 # Plugins -- Experimental -- specify the filename for each plugin shared object
 plugins:
-#   - /path/to/plugin.so
+  @pfring_comment@- @prefix@/lib/@PACKAGE_NAME@/pfring.so
+# - /path/to/plugin.so
 
 # Configure the type of alert (and other) logging you would like.
 outputs: