mirror of
https://github.com/espressif/openthread.git
synced 2026-08-20 09:29:51 +00:00
[mesh-forwarder] call UpdateRoutes on rx of first fragment frame (#7015)
This commit ensures to call `UpdateRoutes()` on rx of a first lowpan fragment frame. `UpdateRoutes()` can then update the snooped address cache entries and check if the message is from a previous child (which indicates that the child has switched to a new parent). This change should help address an issue with "inform previous parent" behavior not removing the child when `MULTI_RADIO` is enabled (due to frag header added to the frames for duplication detection under multi-radio).
This commit is contained in:
@@ -1242,6 +1242,10 @@ void MeshForwarder::HandleFragment(const uint8_t * aFrame,
|
||||
{
|
||||
uint16_t datagramSize = fragmentHeader.GetDatagramSize();
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
UpdateRoutes(aFrame, aFrameLength, aMacSource, aMacDest);
|
||||
#endif
|
||||
|
||||
error = FrameToMessage(aFrame, aFrameLength, datagramSize, aMacSource, aMacDest, message);
|
||||
SuccessOrExit(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user