mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:22:32 +08:00
mm/iob: Add support for increasing length in iob_update_pktlen
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
2fa68fbddd
commit
d44e19d115
@@ -790,7 +790,7 @@ ssize_t psock_udp_sendto(FAR struct socket *psock, FAR const void *buf,
|
||||
udpiplen = udpip_hdrsize(conn);
|
||||
|
||||
iob_reserve(wrb->wb_iob, CONFIG_NET_LL_GUARDSIZE);
|
||||
iob_update_pktlen(wrb->wb_iob, udpiplen);
|
||||
iob_update_pktlen(wrb->wb_iob, udpiplen, false);
|
||||
|
||||
/* Copy the user data into the write buffer. We cannot wait for
|
||||
* buffer space if the socket was opened non-blocking.
|
||||
|
||||
Reference in New Issue
Block a user