From: Jeff Lucovsky Date: Thu, 18 Mar 2021 13:27:48 +0000 (-0400) Subject: plugin: Add "not set" plugin value type X-Git-Tag: suricata-7.0.0-beta1~1387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ee5532036ca9d55ded17e26defa32a67f9d98fb;p=thirdparty%2Fsuricata.git plugin: Add "not set" plugin value type This value is used as a sentinel to determine if the configured eve.json filetype was located. First, the built-in and internal output plugins are checked. If the sentinel value remains set, the external plugins are searched for the filetype. --- diff --git a/src/util-logopenfile.h b/src/util-logopenfile.h index 9b22c1f686..e8b4499607 100644 --- a/src/util-logopenfile.h +++ b/src/util-logopenfile.h @@ -33,12 +33,15 @@ #include "suricata-plugin.h" -enum LogFileType { LOGFILE_TYPE_FILE, - LOGFILE_TYPE_SYSLOG, - LOGFILE_TYPE_UNIX_DGRAM, - LOGFILE_TYPE_UNIX_STREAM, - LOGFILE_TYPE_REDIS, - LOGFILE_TYPE_PLUGIN }; +enum LogFileType { + LOGFILE_TYPE_FILE, + LOGFILE_TYPE_SYSLOG, + LOGFILE_TYPE_UNIX_DGRAM, + LOGFILE_TYPE_UNIX_STREAM, + LOGFILE_TYPE_REDIS, + LOGFILE_TYPE_PLUGIN, + LOGFILE_TYPE_NOTSET +}; typedef struct SyslogSetup_ { int alert_syslog_level;