forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[routing-manager] simplify state management in
PdPrefixManager
(ope…
…nthread#11250) This commit simplifies state tracking and updates within `PdPrefixManager`. Previously, three boolean flags (`mEnabled`, `mStarted`, and `mPaused`) and a `GetState()` method were used to represent the state as a `Dhcp6PdState`. This commit replaces the boolean flags with a single `mState` variable of type `Dhcp6PdState`. New `UpdateState()` and `SetState()` methods handle all state transitions, ensuring PD prefix withdrawal (OMR prefix removal from Network Data) and state change signaling.
- Loading branch information
Showing
2 changed files
with
47 additions
and
69 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