}
/*
-** Revert the detection engine back to not inspecting packets
+** Enable or disable inspecting packets
** that are going to be rebuilt.
*/
-void fpSetStreamInsert(FastPatternConfig* fp)
+void fpSetStreamInsert(FastPatternConfig* fp, bool enable)
{
- fp->inspect_stream_insert = 0;
+ fp->inspect_stream_insert = enable;
}
/*
int fpSetDetectSearchMethod(FastPatternConfig*, const char*);
void fpSetDetectSearchOpt(FastPatternConfig*, int flag);
void fpSetDebugMode(FastPatternConfig*);
-void fpSetStreamInsert(FastPatternConfig*);
+void fpSetStreamInsert(FastPatternConfig*, bool enable);
void fpSetMaxQueueEvents(FastPatternConfig*, unsigned int);
void fpDetectSetSplitAnyAny(FastPatternConfig*, int);
void fpSetMaxPatternLen(FastPatternConfig*, unsigned int);
{ "max_queue_events", Parameter::PT_INT, nullptr, "5",
"maximum number of matching fast pattern states to queue per packet" },
- { "no_stream_inserts", Parameter::PT_BOOL, nullptr, "false",
- "don't inspect reassembled payload - good for performance, bad for detection" },
+ { "inspect_stream_inserts", Parameter::PT_BOOL, nullptr, "true",
+ "inspect reassembled payload - disabling is good for performance, bad for detection" },
{ "search_method", Parameter::PT_STRING, nullptr, "ac_bnfa_q",
"set fast pattern algorithm - choose available search engine" },
else if ( v.is("max_queue_events") )
fpSetMaxQueueEvents(fp, v.get_long());
- else if ( v.is("no_stream_inserts") )
- fpSetStreamInsert(fp);
+ else if ( v.is("inspect_stream_inserts") )
+ fpSetStreamInsert(fp, v.get_bool());
else if ( v.is("search_method") )
{