nuttx/net
chao.an e749f6ca7e net/tcp/monitor: do not migrate the state to close
1. remove the unnecessary interfaces tcp_close_monitor()

socket flags(s_flags) is a global state for net connection
remove the incorrect update for stop monitor

2. do not start the tcp monitor from duplicated psock

the tcp monitor has already registered in connect callback

------------------------------------------------------------
This patch also fix the telnet issue reported by:
https://github.com/apache/incubator-nuttx/pull/5434#issuecomment-1035600651

the orignal session fd is closed after dup, the connect state
has incorrectly migrated to close:

drivers/net/telnet.c:
 977 static int telnet_session(FAR struct telnet_session_s *session)
 ...
 1031   ret = psock_dup2(psock, &priv->td_psock);
 ...
 1082   nx_close(session->ts_sd);

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-11 18:56:40 +09:00
..
arp net: unify FAR keyword usage for all net buffer memory mapped buffers 2022-01-20 01:42:56 +08:00
bluetooth net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
can net/inet: move socket timestamp into socket_conn_s 2022-02-10 15:04:33 -03:00
devif net/devif: remove invalid NET_IPv4_REASSEMBLY definition 2022-02-07 18:31:31 +08:00
icmp net/inet: move recv/send timeout into socket_conn_s 2022-02-10 15:04:33 -03:00
icmpv6 net/inet: move recv/send timeout into socket_conn_s 2022-02-10 15:04:33 -03:00
ieee802154 net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
igmp include: fix double include pre-processor guards 2022-01-16 11:11:14 -03:00
inet net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
ipforward net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
local net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
mld net/tcp/netdev/mld: correct the netlock handling 2022-02-03 11:09:18 -03:00
neighbor net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
netdev netdev/lladdrsize: remove invalid duplicate case 2022-02-07 20:08:26 +08:00
netlink net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
pkt net/pkt: replace the common connect prologue 2022-02-10 15:04:33 -03:00
procfs libc: Rename match to fnmatch 2021-08-02 08:23:35 -03:00
route net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
rpmsg net/inet: move recv/send timeout into socket_conn_s 2022-02-10 15:04:33 -03:00
sixlowpan net/inet: move recv/send timeout into socket_conn_s 2022-02-10 15:04:33 -03:00
socket net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
tcp net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
udp net/udp: remove psock hook to avoid invalid reference 2022-02-10 15:04:33 -03:00
usrsock net/inet: move recv/send timeout into socket_conn_s 2022-02-10 15:04:33 -03:00
utils net: unify FAR keyword usage for all net buffer memory mapped buffers 2022-01-20 01:42:56 +08:00
Kconfig net: add config to support allocate connect dynamically 2022-01-01 20:40:02 +08:00
Makefile
net_initialize.c
README.txt

README
======

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

  nuttx/
   |
   `- net/
       |
       +- arp        - Address resolution protocol (IPv4)
       +- bluetooth  - PF_BLUETOOTH socket interface
       +- devif      - Stack/device interface layer
       +- 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   |
    +----------------------------------------------------------------+ +--------------------------+