Function pfwl_defragmentation_set_total_memory_limit_ipv4

Function Documentation

uint8_t pfwl_defragmentation_set_total_memory_limit_ipv4(pfwl_state_t *state, uint32_t total_memory_limit)

Sets the total amount of memory (in bytes) that can be used for IPv4 defragmentation. If defragmentation is disabled and then enabled again, this function must be called again.

Return

0 if succeeded, 1 otherwise.

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

  • total_memory_limit: The maximum amount of memory that can be used for IPv4 defragmentation.