本文整理汇总了C++中DynamicEngineData::flowbitCheck方法的典型用法代码示例。如果您正苦于以下问题:C++ DynamicEngineData::flowbitCheck方法的具体用法?C++ DynamicEngineData::flowbitCheck怎么用?C++ DynamicEngineData::flowbitCheck使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DynamicEngineData
的用法示例。
在下文中一共展示了DynamicEngineData::flowbitCheck方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: processFlowbits
/*
* Process flowbits function
*
* p: packet data structure, same as the one found in snort.
* flowBits: data defined in the detection plugin for this rule option
*
* Returns:
* > 0 : match found
* = 0 : no match found
*
* Predefined constants:
* (see sf_snort_plugin_api.h for more values)
* RULE_MATCH - if flowbit operation succeeded
* RULE_NOMATCH - if flowbit operation failed
*
*/
ENGINE_LINKAGE int processFlowbits(void *p, FlowBitsInfo *flowBits)
{
/* flowbitCheck returns non-zero if the flow bit operation succeeded. */
if (_ded.flowbitCheck(p, flowBits->operation, flowBits->id))
return RULE_MATCH;
return RULE_NOMATCH;
}