mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 07:25:19 +00:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue