]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Revert "tcp: disallow bind() to reuse addr/port"
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 19:01:14 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:58 +0000 (10:33 +0900)
commitb89f9a09353e9382646babf92e6fe5e9068661de
tree16347436f7f3675e795f8d17abf819dc141e1839
parente165f370fe28e09a5a1ad1acc250f8b5b7f72c22
Revert "tcp: disallow bind() to reuse addr/port"

[ Upstream commit 3e8c806a08c7beecd972e7ce15c570b9aba64baa ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/inet_connection_sock.c
net/ipv6/inet6_connection_sock.c