-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ip6] simplify
SelectSourceAddress()
(#8615)
This commit updates `Ip6::SelectSourceAddress()`. A new version of is added which as its input gets a destination `Ip6::Address` instead of an `Ip6::MessageInfo`, and returns the selected source address as an `Ip6::Address *`. This helps simplify its use (no need to create or pass `MessageInfo` instances). This commit also moves the implementation of `otIp6SelectSourceAddress()` from `ip6_api.cpp` to `Ip6` class adding a version of `SelectSourceAddress()` which updates a passed-in `MessageInfo`directly.
- Loading branch information
Showing
4 changed files
with
89 additions
and
86 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