Possible this bug actual in FreeRTOS-lwip config.
Not a FreeRTOS-lwip config bug.
The same issue also has impact on ThreadX-NetX.
If my understanding is correct:
With current wiced_packet_get_data() implementation, the caller of wiced_packet_get_data() can only get the data/request_length of a single frame from a packet. i.e. the data in other frames of the packet are not read at all.
But all the users of wiced_packet_get_data() does not check if all data are read.
All the usage of wiced_packet_get_data() call needs fix.
This looks like a critical issue, can someone from cypress team response on this issue?