Make SO_REUSEADDR not mandatory in netlib
This functionality is not available in NuttX so far.
This commit is contained in:
parent
a5dff52a71
commit
960a92c652
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user