[PATCH 1/1] lib/socket: randomize the generated local port
Thomas Graf
tgraf at suug.ch
Mon Apr 7 14:28:38 PDT 2014
On 04/07/14 at 08:26pm, Thomas Haller wrote:
> Instead of always trying the same order of ports when
> looking for an unused port, randomize the order (naively).
>
> As libnl-1 uses the same function, it is likely that two applications
> that are using both libraries generate the same ports. By chossing a
> different order how to select the local port, the chances are smaller
> for this to happen.
>
> Signed-off-by: Thomas Haller <thaller at redhat.com>
Acked-by: Thomas Graf <tgraf at suug.ch>
More information about the libnl
mailing list