|
|
|
|
@ -80,20 +80,29 @@ int DetectHelperBufferMpmRegister(const char *name, const char *desc, AppProto a
|
|
|
|
|
return DetectBufferTypeGetByName(name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int DetectHelperMultiBufferMpmRegister(const char *name, const char *desc, AppProto alproto,
|
|
|
|
|
bool toclient, bool toserver, InspectionMultiBufferGetDataPtr GetData)
|
|
|
|
|
int DetectHelperMultiBufferProgressMpmRegister(const char *name, const char *desc, AppProto alproto,
|
|
|
|
|
bool toclient, bool toserver, InspectionMultiBufferGetDataPtr GetData, int progress)
|
|
|
|
|
{
|
|
|
|
|
if (toserver) {
|
|
|
|
|
DetectAppLayerMultiRegister(name, alproto, SIG_FLAG_TOSERVER, 0, GetData, 2, 0);
|
|
|
|
|
DetectAppLayerMultiRegister(
|
|
|
|
|
name, alproto, SIG_FLAG_TOSERVER, progress, GetData, 2, progress);
|
|
|
|
|
}
|
|
|
|
|
if (toclient) {
|
|
|
|
|
DetectAppLayerMultiRegister(name, alproto, SIG_FLAG_TOCLIENT, 0, GetData, 2, 0);
|
|
|
|
|
DetectAppLayerMultiRegister(
|
|
|
|
|
name, alproto, SIG_FLAG_TOCLIENT, progress, GetData, 2, progress);
|
|
|
|
|
}
|
|
|
|
|
DetectBufferTypeSupportsMultiInstance(name);
|
|
|
|
|
DetectBufferTypeSetDescriptionByName(name, desc);
|
|
|
|
|
return DetectBufferTypeGetByName(name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int DetectHelperMultiBufferMpmRegister(const char *name, const char *desc, AppProto alproto,
|
|
|
|
|
bool toclient, bool toserver, InspectionMultiBufferGetDataPtr GetData)
|
|
|
|
|
{
|
|
|
|
|
return DetectHelperMultiBufferProgressMpmRegister(
|
|
|
|
|
name, desc, alproto, toclient, toserver, GetData, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int SCDetectHelperNewKeywordId(void)
|
|
|
|
|
{
|
|
|
|
|
if (DETECT_TBLSIZE_IDX >= DETECT_TBLSIZE) {
|
|
|
|
|
|