slirp: Port redirection option behave differently on Linux and Windows
commitefcb7e45290ecc8633f7c5bdf02ac86f6289fa7d
authorTaimoor Mirza <tmirza@codesourcery.com>
Thu, 15 Aug 2013 18:13:28 +0000 (15 23:13 +0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 1 Sep 2013 14:52:30 +0000 (1 18:52 +0400)
treeadca823dd54dccd7edc8a8b5d3c209c9d4091a57
parent4ff78e0dbcd5c795962567fdc1b31e9e03c55b07
slirp: Port redirection option behave differently on Linux and Windows

port redirection code uses SO_REUSEADDR socket option before binding to
host port. Behavior of SO_REUSEADDR is different on Windows and Linux.
Relaunching QEMU with same host and guest port redirection values on Linux
throws error but on Windows it does not throw any error.
Problem is discussed in http://lists.gnu.org/archive/html/qemu-devel/2013-04/msg03089.html

Signed-off-by: Taimoor Mirza <tmirza@codesourcery.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
slirp/socket.c