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.
[udp] remove extra
ShouldUsePlatformUdp()
checks (openthread#10962)
This commit removes the `ShouldUsePlatformUdp()` call in `Ip6::PassToHost()` and `Udp::HandleMessage()`. `ShouldUsePlatformUdp(port)` checks whether the port is NOT one of the port numbers used by the OT stack, such as the MLE port, TMF port, border agent port, or joiner port. This check is already covered by `Udp::IsPortInUse()`, which checks if there is a UDP socket bound to the given port. Applying such a filter in `Udp::HandleMessage()` seems to have been added by mistake, as it blocks the use of UDP receivers, which should be able to receive and process on any port, not just the ports where we have a socket bound.
- Loading branch information
Showing
3 changed files
with
18 additions
and
25 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