Allows initialization to be done early, so the table is ready for
dynamic registration by plugins which are loaded before signature
setup.
}
}
-void SigTableSetup(void)
+void SigTableInit(void)
{
if (sigmatch_table == NULL) {
DETECT_TBLSIZE = DETECT_TBLSIZE_STATIC + DETECT_TBLSIZE_STEP;
if (sigmatch_table == NULL) {
DETECT_TBLSIZE = 0;
FatalError("Could not allocate sigmatch_table");
- return;
}
}
+}
+void SigTableSetup(void)
+{
DetectSidRegister();
DetectPriorityRegister();
DetectPrefilterRegister();
#define DETECT_TBLSIZE_STEP 256
int SigTableList(const char *keyword);
void SigTableCleanup(void);
+void SigTableInit(void);
void SigTableSetup(void);
void SigTableRegisterTests(void);
AppLayerSetup();
/* hardcoded initialization code */
+ SigTableInit();
SigTableSetup(); /* load the rule keywords */
TmqhSetup();
MacSetRegisterFlowStorage();
+ SigTableInit();
+
#ifdef HAVE_PLUGINS
SCPluginsLoad(suri->capture_plugin_name, suri->capture_plugin_args);
#endif
MpmTableSetup();
SpmTableSetup();
EngineModeSetIDS();
+ SigTableInit();
SigTableSetup();
}
if (cnt++ == 1024) {