nuttx/net
zhanghongyu 746d68916f net/tcp: add support for the CLOSE_WAIT state
CLOSE-WAIT - represents waiting for a connection termination request
             from the local user.
      TCP A                                                TCP B

  1.  ESTABLISHED                                          ESTABLISHED
  2.  (Close)
      FIN-WAIT-1  --> <SEQ=100><ACK=300><CTL=FIN,ACK>  --> CLOSE-WAIT
  3.  FIN-WAIT-2  <-- <SEQ=300><ACK=101><CTL=ACK>      <-- CLOSE-WAIT
  4.                                                       (Close)
      TIME-WAIT   <-- <SEQ=300><ACK=101><CTL=FIN,ACK>  <-- LAST-ACK
  5.  TIME-WAIT   --> <SEQ=101><ACK=301><CTL=ACK>      --> CLOSED
  6.  (2 MSL)
      CLOSED

in the current state, we can continue to send data until the user
calls shutdown or close, then directly enter the TCP_LAST_ACK state

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2025-12-27 21:06:23 +08:00
..
arp arp_poll: skip arp_out when arp_send flow 2025-12-25 08:36:47 -03:00
bluetooth style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
can net/can: can protocol uses a separate buffer to cache can data 2025-12-25 08:56:12 -03:00
devif net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00
icmp net/bufpool: fix typo 2025-12-25 08:33:13 -03:00
icmpv6 net/bufpool: fix typo 2025-12-25 08:33:13 -03:00
ieee802154 style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
igmp igmp_msg.c:mod check of IGMP_SCHEDMSG from assert to error log 2025-12-25 09:58:14 +08:00
inet tasking: remove no use remove excess code 2025-12-24 20:09:05 +08:00
ipfilter fix compile warning with implicit declaration of function 'icmp_reply' 2024-10-08 22:30:11 +08:00
ipforward net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00
ipfrag net/ipfrag: fix ip fragment assert when iob not enough 2025-12-25 08:34:01 -03:00
local local: correct shutdown state when use UDP mode 2025-07-07 23:45:35 +08:00
mld mld: free all mld group when netdev unregister 2025-12-25 08:35:04 -03:00
nat style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
neighbor net/ethernet: ARP can be configured on interface 2025-12-25 12:23:38 +08:00
netdev mld: free all mld group when netdev unregister 2025-12-25 08:35:04 -03:00
netfilter fix compile warning with ipt_sockopt.c and ip6t_sockopt.c: implicit declaration of function 'popcount' 2024-10-08 22:30:11 +08:00
netlink net/bufpool: fix typo 2025-12-25 08:33:13 -03:00
pkt net/bufpool: fix typo 2025-12-25 08:33:13 -03:00
procfs net/udp: fix build error when NET_UDP_WRITE_BUFFERS disable 2025-12-10 23:44:14 +08:00
route style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
rpmsg net: Split msg_iovlen check in recvmsg into each protocol 2025-01-20 17:12:14 +08:00
sixlowpan style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
socket net/udp: Support zero-length UDP datagrams 2025-12-27 20:38:47 +08:00
tcp net/tcp: add support for the CLOSE_WAIT state 2025-12-27 21:06:23 +08:00
udp net/udp: Validate UDP length field against actual packet size 2025-12-27 20:44:52 +08:00
usrsock net/bufpool: fix typo 2025-12-25 08:33:13 -03:00
utils nuttx/net: Expose the net_ipv6addr_maskcmp interface to user-mode calls 2025-12-25 22:13:43 +08:00
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig net/can: add write buffer to support nonblock send 2025-12-15 10:19:15 +08:00
Makefile Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
net_initialize.c net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00