]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 19:01:14 +0000 (12:01 -0700)
commit421f4d94605477a2c8a9cef8679f5aacc9272cc7
tree89b0b7bfc919ec8e7dc0866f16715bb626af0cc6
parented68c3f756423b7070d740c10a79ffcca97b24e7
Revert "tcp: disallow bind() to reuse addr/port"

This reverts commit f3b7b03719bef53bc539d9dca7ec18197a983dc4.

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