slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR
authorSebastian Ottlik <ottlik@fzi.de>
Wed, 2 Oct 2013 10:23:15 +0000 (12:23 +0200)
committerStefan Weil <sw@weilnetz.de>
Wed, 2 Oct 2013 17:20:31 +0000 (19:20 +0200)
commitaad1239a7e15f42c0b8a802433582c48417a4541
treefee4e67adf710c1972d16546aecf9fe6b914dccd
parentbcbe92fb080420551125994f3b15c139019da694
slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR

SO_REUSEADDR should be avoided on Windows but is desired on other operating
systems. So instead of setting it we call socket_set_fast_reuse that will result
in the appropriate behaviour on all operating systems.

Signed-off-by: Sebastian Ottlik <ottlik@fzi.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
slirp/misc.c
slirp/socket.c
slirp/tcp_subr.c
slirp/udp.c