Make SO_REUSEADDR not mandatory in netlib

This functionality is not available in NuttX so far.
This commit is contained in:
Miguel Herranz 2020-02-06 20:02:48 +01:00 committed by Abdelatif Guettouche
parent a5dff52a71
commit 960a92c652

View File

@ -94,8 +94,7 @@ int netlib_listenon(uint16_t portno)
optval = 1;
if (setsockopt(listensd, SOL_SOCKET, SO_REUSEADDR, (void*)&optval, sizeof(int)) < 0)
{
nerr("ERROR: setsockopt SO_REUSEADDR failure: %d\n", errno);
goto errout_with_socket;
nwarn("WARNING: setsockopt SO_REUSEADDR failure: %d\n", errno);
}
/* Bind the socket to a local address */