net/pkt: fix issue that set nonblock by fcntl does not take effect

pkt_sockcaps returns SOCKCAP_NONBLOCKING to indicate that pkt supports
nonblock configuration.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2024-08-14 15:24:13 +08:00 committed by Xiang Xiao
parent b832638b15
commit 87ebdb850c

View File

@ -168,7 +168,7 @@ static int pkt_setup(FAR struct socket *psock)
static sockcaps_t pkt_sockcaps(FAR struct socket *psock)
{
return 0;
return SOCKCAP_NONBLOCKING;
}
/****************************************************************************