-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Pal/Linux] Memorize the assigned ephemeral port during
udp_bind()
In Linux, if a port number (in the input UDP socket address) during `bind()` is specified as 0, an ephemeral (random) port is assigned. Previously, Linux PAL forgot to update the port in the UDP socket address, so `getsockname()` always returned 0 instead of the actual port. This commit fixes this bug. Signed-off-by: Sonali Saha <sonali.saha@intel.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
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