|
|
|
@ -308,12 +308,14 @@ void RunModeDispatch(int runmode, const char *custom_mode,
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
case RUNMODE_PLUGIN: {
|
|
|
|
case RUNMODE_PLUGIN: {
|
|
|
|
|
|
|
|
#ifdef HAVE_PLUGINS
|
|
|
|
SCCapturePlugin *plugin = SCPluginFindCaptureByName(capture_plugin_name);
|
|
|
|
SCCapturePlugin *plugin = SCPluginFindCaptureByName(capture_plugin_name);
|
|
|
|
if (plugin == NULL) {
|
|
|
|
if (plugin == NULL) {
|
|
|
|
FatalError(SC_ERR_PLUGIN, "No capture plugin found with name %s",
|
|
|
|
FatalError(SC_ERR_PLUGIN, "No capture plugin found with name %s",
|
|
|
|
capture_plugin_name);
|
|
|
|
capture_plugin_name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_mode = (const char *)plugin->GetDefaultMode();
|
|
|
|
custom_mode = (const char *)plugin->GetDefaultMode();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case RUNMODE_NFQ:
|
|
|
|
case RUNMODE_NFQ:
|
|
|
|
|