You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/02/06 22:43:50 UTC

[incubator-nuttx-apps] 02/02: Make SO_REUSEADDR not mandatory in netlib

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch pr55
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 960a92c652afc3c3c6deec63af3e7ca659db81d6
Author: Miguel Herranz <mi...@midokura.com>
AuthorDate: Thu Feb 6 20:02:48 2020 +0100

    Make SO_REUSEADDR not mandatory in netlib
    
    This functionality is not available in NuttX so far.
---
 netutils/netlib/netlib_listenon.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/netutils/netlib/netlib_listenon.c b/netutils/netlib/netlib_listenon.c
index 11e818e..abae74d 100644
--- a/netutils/netlib/netlib_listenon.c
+++ b/netutils/netlib/netlib_listenon.c
@@ -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 */