forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[border-agent] directly respond to MGMT_GET from non-active commissio…
…ner (openthread#10524) This commit updates the `BorderAgent` to directly respond to `MGMT_ACTIVE_GET` and `MGMT_PENDING_GET` requests from a non-active commissioner. Requests from an active commissioner are still forwarded to the leader. This aligns the implementation with Thread 1.4 requirements (ephemeral PSKc use case). To achieve this, the following changes are made: - New `State` values are added to distinguish between when a commissioner candidate is connected and when its petition to become the active commissioner is accepted. This determines whether the `MGMT_GET` request should be handled directly or forwarded to the leader. - This state is tracked locally by `BorderAgent` instead of monitoring Network Data to determine whether an active commissioner exists. This ensures correct behavior even when Network Data updates are delayed. - The `DatasetManager` is updated to provide `ProcessGetRequest()` to process an `MGMT_GET` request and prepare the response. This is then used by `DatasetManager` itself and `BorderAgent`.
- Loading branch information
Showing
5 changed files
with
138 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters