mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 09:57:38 +00:00
[mesh-forwarder] enhance EID-RLOC cache updates (#13054)
Gate `MeshForwarder::UpdateEidRlocCacheAndStaleChild` on link security, ensuring that the received frame has security enabled. Adding the link security check ensures that only fully authenticated data frames (successfully decrypted and verified at the MAC layer) can influence the EID-to-RLOC cache and the child table states.
This commit is contained in:
@@ -669,6 +669,7 @@ void MeshForwarder::UpdateEidRlocCacheAndStaleChild(RxInfo &aRxInfo)
|
||||
{
|
||||
Neighbor *neighbor;
|
||||
|
||||
VerifyOrExit(aRxInfo.IsLinkSecurityEnabled());
|
||||
VerifyOrExit(!aRxInfo.GetDstAddr().IsBroadcast() && aRxInfo.GetSrcAddr().IsShort());
|
||||
|
||||
SuccessOrExit(aRxInfo.ParseIp6Headers());
|
||||
|
||||
Reference in New Issue
Block a user