nuttx/net/udp
Zhe Weng 26e2e1e32f net/udp: Remove wrong check in udp_readahead
- 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>
2023-05-05 11:25:07 +03:00
..
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs
udp_callback.c net/udp: Add drop count when limited by recv bufsize 2023-02-24 14:36:01 +02:00
udp_close.c net/udp: correct linger timeout 2023-01-18 02:47:12 +08:00
udp_conn.c Performance optimizations in connection allocations. 2023-02-28 14:23:16 +01:00
udp_devpoll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
udp_finddev.c net: modify find device logic 2023-02-12 01:25:34 +08:00
udp_input.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_ioctl.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
udp_ipselect.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_netpoll.c poll: add poll_notify() api and call it in all drivers 2022-09-26 12:06:32 +08:00
udp_notifier.c
udp_recvfrom.c net/udp: Remove wrong check in udp_readahead 2023-05-05 11:25:07 +03:00
udp_send.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
udp_sendto_buffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_sendto_unbuffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_setsockopt.c net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
udp_txdrain.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_wrbuffer_dump.c
udp_wrbuffer.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp.h net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00