mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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 <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -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),
|
iob_update_pktlen(dev->d_iob, udpip_hdrsize(pstate->st_conn),
|
||||||
false);
|
false);
|
||||||
dev->d_sndlen = 0;
|
dev->d_sndlen = 0;
|
||||||
dev->d_len = dev->d_iob->io_pktlen;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev->d_len = dev->d_iob->io_pktlen;
|
||||||
#ifdef NEED_IPDOMAIN_SUPPORT
|
#ifdef NEED_IPDOMAIN_SUPPORT
|
||||||
/* If both IPv4 and IPv6 support are enabled, then we will need to
|
/* If both IPv4 and IPv6 support are enabled, then we will need to
|
||||||
* select which one to use when generating the outgoing packet.
|
* select which one to use when generating the outgoing packet.
|
||||||
|
|||||||
Reference in New Issue
Block a user