nuttx/net
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
..
arp net: Remove the extra space 2023-05-03 15:18:21 +02:00
bluetooth net: Remove the extra space 2023-05-03 15:18:21 +02:00
can recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00
devif net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
icmp net: Make si_accept callback optional 2023-03-06 20:58:27 +02:00
icmpv6 icmpv6: add RDNSS field support for send route advertise 2023-03-17 16:50:37 -03:00
ieee802154 net: Make si_poll callback optional 2023-03-06 20:58:27 +02:00
igmp support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
inet net: Simplify the tcp/udp existence check 2023-05-03 17:40:00 +03:00
ipforward forward: limit the forwarding range of broadcast packets 2023-04-22 19:24:46 +08:00
ipfrag net/ip: fix compile break if disable NET_TCP 2023-02-07 12:46:40 +02:00
local recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00
mld support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
nat net/ip: fix compile break if disable NET_TCP 2023-02-07 12:46:40 +02:00
neighbor net/arp: Move arp_ipin and arp_out to private header file 2022-12-04 20:39:21 +08:00
netdev net/procfs: Support to show MTU in netdev statistics 2023-04-28 09:45:21 +08:00
netfilter change strcpy to strlcpy 2023-02-24 12:15:40 +08:00
netlink netlink: convert lltype to device type 2023-05-05 00:19:59 +08:00
pkt net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
procfs net: Simplify the tcp/udp existence check 2023-05-03 17:40:00 +03:00
route net: use NXRMUTEX_INITIALIZER for rmutex init 2023-03-15 13:57:08 +01:00
rpmsg net/rpmsg: Set family for rpaddr in ns_bind 2023-04-21 13:18:48 +03:00
sixlowpan net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
socket recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00
tcp tcp_monitor: start_monitor return OK when connect closed by peer 2023-05-04 17:12:52 +03:00
udp net/udp: Remove wrong check in udp_readahead 2023-05-05 11:25:07 +03:00
usrsock net/local: Return the unblock handle correctly in local_accept 2023-03-09 09:17:19 +01:00
utils recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00
Kconfig net/can: fix can mssage corruption if enable NET_TIMESTAMP 2023-04-27 00:30:58 +08:00
Makefile Support fragmentation and reassembly 2023-01-17 14:01:37 +08:00
net_initialize.c net: Reoder the initialize sequence(mac->ip->tcp/udp) 2022-03-12 19:24:17 +02:00
README.txt Support fragmentation and reassembly 2023-01-17 14:01:37 +08:00

README
======

Directory Structure
===================

  nuttx/
   |
   `- net/
       |
       +- arp        - Address resolution protocol (IPv4)
       +- bluetooth  - PF_BLUETOOTH socket interface
       +- devif      - Stack/device interface layer
       +- ipfrag     - Fragmentation and reassembly
       +- icmp       - Internet Control Message Protocol (IPv4)
       +- icmpv6     - Internet Control Message Protocol (IPv6)
       +- ieee802154 - PF_IEEE802154 socket interface
       +- inet       - PF_INET/PF_INET6 socket interface
       +- ipforward  - IP forwarding logic
       +- local      - Unix domain (local) sockets
       +- mld        - Multicast Listener Discovery (MLD)
       +- neighbor   - Neighbor Discovery Protocol (IPv6)
       +- netdev     - Socket network device interface
       +- netlink    - Netlink IPC socket interface
       +- pkt        - "Raw" packet socket support
       +- sixlowpan  - 6LoWPAN implementation
       +- socket     - BSD socket interface
       +- route      - Routing table support
       +- tcp        - Transmission Control Protocol
       +- udp        - User Datagram Protocol
       +- usrsock    - User socket API for user-space networking stack
       `- utils      - Miscellaneous utility functions

    +-------------------------------------------------------------------++------------------------+
    |                     Application layer                             || usrsock daemon         |
    +-------------------------------------------------------------------++------------------------+
    +-------------------------------------------------------------------++----------------+ +-----+
    |                   Socket layer (socket/)                          || /dev/usrsock   | |     |
    +-------------------------------------------------------------------++----------------+ |     |
    +------------++--------------------------------------------------++-------------------+ |     |
    |  Network   || Protocol stacks (arp, ipv6, icmp, pkt, tcp, udp) || usrsock/          | |     |
    |   Device   |+--------------------------------------------------++-------------------+ |     |
    | Interface  |+------------------------------------++---------------------------------+ |     |
    | (netdev/)  ||  Network Device Interface (devif/) || Utilities                       | |     |
    +------------++------------------------------------++---------------------------------+ |     |
    +----------------------------------------------------------------+                      |     |
    |                    Network Device Drivers                      |                      | HAL |
    +----------------------------------------------------------------+                      +-----+
    +----------------------------------------------------------------+ +--------------------------+
    |                    Networking Hardware                         | |  Hardware TCP/IP Stack   |
    +----------------------------------------------------------------+ +--------------------------+