mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user