Displaying 1 result from an estimated 1 matches for "inet_csk_get_port".
2017 May 24
0
local ephemeral ports usage and distribution / inet_csk_get_port()
...rt for socket, not doing +1.
Doing a netstat, generally speaking, only even (or odd) local ports are
used so this does not seem application dependent.
It's possible, however, to request both odd and even local ports, when
requesting to bind them explicitly and not letting kernel function
"inet_csk_get_port" determining it.
To compare to another distro, Debian 7 3.2.78-1 x86_64 does increment
local port number by +1 when opening sockets, using both even and odd local
sockets numbers.
This has an influence when doing network interfaces bonding with LACP
801.3ad with layer3+4 hashing policy, beca...