You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/12 03:37:58 UTC

[incubator-nuttx-apps] branch master updated: netutils: add NETLIB_SOCK_TYPE for AF_RPMSG

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5c1626c  netutils: add NETLIB_SOCK_TYPE for AF_RPMSG
5c1626c is described below

commit 5c1626c7647d07924d5f9294bb876bf6b917c25b
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Thu Sep 2 17:59:50 2021 +0800

    netutils: add NETLIB_SOCK_TYPE for AF_RPMSG
    
    Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
 include/netutils/netlib.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h
index 03764ef..142c3ea 100644
--- a/include/netutils/netlib.h
+++ b/include/netutils/netlib.h
@@ -110,6 +110,8 @@
 #  define NETLIB_SOCK_FAMILY  AF_INET
 #elif defined(CONFIG_NET_NETLINK)
 #  define NETLIB_SOCK_FAMILY  AF_NETLINK
+#elif defined(CONFIG_NET_RPMSG)
+#  define NETLIB_SOCK_FAMILY  AF_RPMSG
 #else
 #  define NETLIB_SOCK_FAMILY  AF_UNSPEC
 #endif
@@ -162,6 +164,8 @@
 #  define NETLIB_SOCK_TYPE SOCK_RAW
 #elif NETLIB_SOCK_FAMILY == AF_NETLINK
 #  define NETLIB_SOCK_TYPE SOCK_DGRAM
+#elif NETLIB_SOCK_FAMILY == AF_RPMSG
+#  define NETLIB_SOCK_TYPE SOCK_STREAM
 #endif
 
 /****************************************************************************