tcp: ipv6: bind() use stronger condition for bind_conflict
authorFlavio Leitner <fbl@redhat.com>
Tue, 5 Mar 2013 08:11:01 +0000 (08:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2013 04:40:00 +0000 (23:40 -0500)
commitdd9f319d94c99b96fc9b34ccde7389a91059fe31
tree8b9869b2897fc7ee32076445cd2ba679e3276bd8
parentfae4f3cf49ac9d91b83c705809d71fdeb0dc9284
tcp: ipv6: bind() use stronger condition for bind_conflict

We must try harder to get unique (addr, port) pairs when
doing port autoselection for sockets with SO_REUSEADDR
option set.

This is a continuation of commit aacd9289af8b82f5fb01bcdd53d0e3406d1333c7
for IPv6.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/inet6_connection_sock.c