Function pfwl_set_flow_termination_callback

Function Documentation

uint8_t pfwl_set_flow_termination_callback(pfwl_state_t *state, pfwl_flow_termination_callback_t *cleaner)

Sets the callback that will be called when a flow expires.

Return

0 if succeeded, 1 otherwise.

Parameters
  • state: A pointer to the state of the library.

  • cleaner: The callback used to access flow information when it expires.