mmpm_set_hash_func
Feature
Registers a hash calculation function with the multi-patter rule matching engine.
Definition
int mmpm_set_hash_func(mmpm_handler_t *handler, hash_calc_func hash_func);
Parameter Description
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
handler |
Handler of the matching engine |
Not null |
Input |
hash_func |
Hash function pointer |
Not null |
Input |
Return Value
- Success: 0 is returned.
- Failure: The error code is returned.
Parent topic: API Description