This is an automated email from the ASF dual-hosted git repository.
simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6a6bc58e07c net/udp_sendto_unbuffered.c: fix udp message cannot be
sent to the network card
6a6bc58e07c is described below
commit 6a6bc58e07c3a23beca6f33f6d72d83a0cdfff45
Author: zhanghongyu <[email protected]>
AuthorDate: Thu Nov 13 22:57:37 2025 +0800
net/udp_sendto_unbuffered.c: fix udp message cannot be sent to the network
card
UDP message cannot be sent to the network card, and case a stuck issue.
Signed-off-by: zhanghongyu <[email protected]>
---
net/udp/udp_sendto_unbuffered.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/udp/udp_sendto_unbuffered.c b/net/udp/udp_sendto_unbuffered.c
index cb95624062a..c6540a26f38 100644
--- a/net/udp/udp_sendto_unbuffered.c
+++ b/net/udp/udp_sendto_unbuffered.c
@@ -219,9 +219,9 @@ static uint32_t sendto_eventhandler(FAR struct net_driver_s
*dev,
iob_update_pktlen(dev->d_iob, udpip_hdrsize(pstate->st_conn),
false);
dev->d_sndlen = 0;
- dev->d_len = dev->d_iob->io_pktlen;
}
+ dev->d_len = dev->d_iob->io_pktlen;
#ifdef NEED_IPDOMAIN_SUPPORT
/* If both IPv4 and IPv6 support are enabled, then we will need to
* select which one to use when generating the outgoing packet.