From 59ae42131477e6cb6d414b085528c75f46b98d6a Mon Sep 17 00:00:00 2001 From: ligd Date: Sat, 9 Oct 2021 13:37:57 +0800 Subject: [PATCH] socket_rpmsg: support SOCK_SEQPACKET Signed-off-by: ligd --- net/rpmsg/rpmsg_sockif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index 8c582fcfd9..5c4fe4323c 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -1144,7 +1144,7 @@ static ssize_t rpmsg_socket_recvmsg(FAR struct socket *psock, FAR struct rpmsg_socket_conn_s *conn = psock->s_conn; ssize_t ret; - if (psock->s_type == SOCK_DGRAM && _SS_ISBOUND(psock->s_flags) + if (psock->s_type != SOCK_STREAM && _SS_ISBOUND(psock->s_flags) && !_SS_ISCONNECTED(psock->s_flags)) { ret = rpmsg_socket_connect_internal(psock); @@ -1161,7 +1161,7 @@ static ssize_t rpmsg_socket_recvmsg(FAR struct socket *psock, rpmsg_socket_lock(&conn->recvlock); - if (psock->s_type == SOCK_DGRAM) + if (psock->s_type != SOCK_STREAM) { uint32_t datalen;