You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/11/20 15:46:35 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #7627: Refine net/usrsock Kconfig option

xiaoxiang781216 commented on code in PR #7627:
URL: https://github.com/apache/incubator-nuttx/pull/7627#discussion_r1027310878


##########
net/usrsock/usrsock_sockif.c:
##########
@@ -98,43 +98,6 @@ static int usrsock_sockif_setup(FAR struct socket *psock, int protocol)
   int type = psock->s_type;
   int ret;
 
-#ifdef CONFIG_NET_USRSOCK_NO_INET
-  if (domain == PF_INET)
-    {
-      return -ENETDOWN;
-    }
-#endif
-
-#ifdef CONFIG_NET_USRSOCK_NO_INET6
-  if (domain == PF_INET6)
-    {
-      return -ENETDOWN;
-    }
-#endif

Review Comment:
   The option is removed since other side need always check whether the domain is supported.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org