-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Commit 4718dac has broken net_pkt_append().
The change added code to detect max_len overruns of the submitted transmit frame but the logic path ends up setting max_len to the smaller mtu size of the underlying transport if there is a context associated with the packet which then in turn resets the submitted "len" to this smaller size. In my test scenario, I'm testing echo_client over 802.15.4 and the logic ends up resetting len to 65 from its original value of 512. So the function that called net_pkt_append() is testing to ensure that the amount of data appended equaled the amount requested which now it fails every time in my test scenario.
Not sure why the change was added but the splitting up of the packet happens down at a lower layer to ensure that the packet fits the transport. So in the case of 15.4, the 512 byte packet request would be properly broken up into multiple 6LoWPAN packets. I suspect this is true of other transports but I'm not sure.