Revert "tcp: disallow bind() to reuse addr/port"
commit3e8c806a08c7beecd972e7ce15c570b9aba64baa
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 19:01:14 +0000 (13 12:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 19:01:14 +0000 (13 12:01 -0700)
tree89b0b7bfc919ec8e7dc0866f16715bb626af0cc6
parent91a403caf0f26c71ce4407fd235b2d6fb225fba9
Revert "tcp: disallow bind() to reuse addr/port"

This reverts commit c191a836a908d1dd6b40c503741f91b914de3348.

It causes known regressions for programs that expect to be able to use
SO_REUSEADDR to shutdown a socket, then successfully rebind another
socket to the same ID.

Programs such as haproxy and amavisd expect this to work.

This should fix kernel bugzilla 32832.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c
net/ipv6/inet6_connection_sock.c