26e2e1e32f
- Before IOB offload, srcaddr / src_addr_size / ifindex are written into IOB by iob_trycopyin, so io_pktlen > 0 is always true, this check is correct at that time. (It won't fail with zero-length UDP datagram.) - After IOB offload, srcaddr / src_addr_size / ifindex are written into offset 0, without increasing io_pktlen. So this check will fail with zero-length UDP datagram now. - We need to support zero-length UDP datagram and this check is unnecessary at this point. - https://stackoverflow.com/questions/5307031/how-to-detect-receipt-of-a-0-length-udp-datagram - https://github.com/apache/nuttx/blob/nuttx-12.1.0/net/udp/udp_callback.c#L214 Signed-off-by: Zhe Weng <wengzhe@xiaomi.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Make.defs | ||
udp_callback.c | ||
udp_close.c | ||
udp_conn.c | ||
udp_devpoll.c | ||
udp_finddev.c | ||
udp_input.c | ||
udp_ioctl.c | ||
udp_ipselect.c | ||
udp_netpoll.c | ||
udp_notifier.c | ||
udp_recvfrom.c | ||
udp_send.c | ||
udp_sendto_buffered.c | ||
udp_sendto_unbuffered.c | ||
udp_setsockopt.c | ||
udp_txdrain.c | ||
udp_wrbuffer_dump.c | ||
udp_wrbuffer.c | ||
udp.h |