Connect from port 0 for source ports
Description
With the removal of *-source
options, bind
will only use ephemeral ports for outbound connections. That said, it still retains some internal logic to select an outgoing port. This logic could be eliminated, as the socket API already allows selecting a random port by binding to port zero.
Request
Remove the internal logic to select a source port.
Links / references
Edited by Alessio Podda