我要评分
获取效率
正确性
完整性
易理解

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.