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
@@ -526,6 +526,11 @@ ssize_t can_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
return -ENOSYS;
}
if (msg->msg_iovlen != 1)
{
return -ENOTSUP;
}
net_lock();
/* Initialize the state structure. */