net: Split msg_iovlen check in recvmsg into each protocol

To prepare for supporting multiple iov in each protocol.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng
2024-10-22 15:45:11 +08:00
committed by Xiang Xiao
parent 4d17c353dd
commit 87a7714103
12 changed files with 55 additions and 5 deletions
+5
View File
@@ -222,6 +222,11 @@ ssize_t usrsock_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
socklen_t outaddrlen = 0;
ssize_t ret;
if (msg->msg_iovlen != 1)
{
return -ENOTSUP;
}
if (fromlen)
{
if (*fromlen > 0 && from == NULL)