mmpm_find_rule
Feature
Finds the target rule using the multi-pattern rule matching engine.
Definition
int mmpm_find_rule(mmpm_handler_t *handler, mmpm_rule_t *rule);
Parameter Description
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
handler |
Handler of the matching engine |
Not null |
Input |
rule |
Rules to be matched |
Not null |
Input/Output |
Return Value
- Success: 0 is returned, and the alias of the matched rule is returned through rule->alias.
- Failure: The error code is returned.
Constraints
Only the matching engine MMPM_MATCHER_TYPE_HASH is supported.
Parent topic: API Description