nuttx/net/inet
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
..
inet_globals.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
inet_sockif.c net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
inet_txdrain.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
inet.h net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv4_getpeername.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
ipv4_getsockname.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv4_setsockopt.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv6_getpeername.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
ipv6_getsockname.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv6_setsockopt.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
Kconfig
Make.defs net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00