udp: complete port availability checking
authorEric Dumazet <dada1@cosmosbay.com>
Thu, 9 Oct 2008 21:51:27 +0000 (14:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 21:51:27 +0000 (14:51 -0700)
While looking at UDP port randomization, I noticed it
was litle bit pessimistic, not looking at type of sockets
(IPV6/IPV4) and not looking at bound addresses if any.

We should perform same tests than when binding to a
specific port.

This permits a cleanup of udp_lib_get_port()

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found