Skip to content

uloop_timeout -> timer abstraction, and cmdu_parse_tlvs() -> map_cmdu_parse_tlvs() with ieee1905_error return code

Anjan Chanda requested to merge acx/timer into devel

This MR contains two major changes -

  1. Use map_cmdu_parse_tlvs() instead of cmdu_parse_tlvs(). This allows Easymesh TLVs policy defined at one single place (within the map.so plugin) allowing for easy maintainability and updates. Also, depending on the Easymesh profile that the CMDU(s) have been received from, runtime decide which TLV policy to apply for validation.
  2. Return error reason in 'ieee1905_error' (and ieee1905_strerror() function to print error in string format) when a CMDU fails validation in cmdu_parse_tlv().
  3. Introduce timer_* functions that abstract out the uloop_timeout* calls for maintainability and easy future porting to non-uloop event loops.

Merge request reports