[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:
Jonathan Hui
2026-05-06 10:35:15 -07:00
committed by GitHub
parent e29e44b0c2
commit 430034214e
+1
View File
@@ -669,6 +669,7 @@ void MeshForwarder::UpdateEidRlocCacheAndStaleChild(RxInfo &aRxInfo)
{
Neighbor *neighbor;
VerifyOrExit(aRxInfo.IsLinkSecurityEnabled());
VerifyOrExit(!aRxInfo.GetDstAddr().IsBroadcast() && aRxInfo.GetSrcAddr().IsShort());
SuccessOrExit(aRxInfo.ParseIp6Headers());