Register known eve output file types during eve registration. This
removes the function to load internal plugins as they are not really
plugins and moves the registration of them into their respective
subsystem.
traffic_id_prefix_len = strlen(TRAFFIC_ID_PREFIX);
traffic_label_prefix_len = strlen(TRAFFIC_LABEL_PREFIX);
+
+ // Register output file types that use the new eve filetype registration
+ // API.
+ SyslogInitialize();
}
json_t *SCJsonString(const char *val)
FeatureTrackingRegister(); /* must occur prior to output mod registration */
RegisterAllModules();
#ifdef HAVE_PLUGINS
- SCInternalLoad();
SCPluginsLoad(suri->capture_plugin_name, suri->capture_plugin_args);
#endif
AppLayerHtpNeedFileInspection();
}
}
-/**
- * \brief Load internal plugins
- */
-void SCInternalLoad(void)
-{
- SyslogInitialize();
-}
-
void SCPluginsLoad(const char *capture_plugin_name, const char *capture_plugin_args)
{
ConfNode *conf = ConfGetNode("plugins");
#include "suricata-plugin.h"
#include "output-eve-syslog.h"
-void SCInternalLoad(void);
void SCPluginsLoad(const char *capture_plugin_name, const char *capture_plugin_args);
SCEveFileType *SCPluginFindFileType(const char *name);
SCCapturePlugin *SCPluginFindCaptureByName(const char *name);