mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 11:47:46 +00:00
[mle] do not respond to MLE Parent Requests in detached state (#3295)
This commit is contained in:
@@ -1587,6 +1587,9 @@ otError MleRouter::HandleParentRequest(const Message &aMessage, const Ip6::Messa
|
||||
|
||||
// A Router MUST NOT send an MLE Parent Response if:
|
||||
|
||||
// 0. It is detached or attempting to another partition
|
||||
VerifyOrExit((mRole != OT_DEVICE_ROLE_DETACHED) && (mAttachState == kAttachStateIdle), error = OT_ERROR_DROP);
|
||||
|
||||
// 1. It has no available Child capacity (if Max Child Count minus
|
||||
// Child Count would be equal to zero)
|
||||
// ==> verified below when allocating a child entry
|
||||
|
||||
Reference in New Issue
Block a user