nuttx/net/inet
wangchen 5c798dd297 inet/inet_sockif.c:In tcp protocol, Add random ports during the listening phase, if no ports are bound
In tcp protocol, if no ports are bound, Add random ports during the listening phase

libuvtestcase:
TEST_IMPL(tcp_listen_without_bind) {
int r;
uv_tcp_t server;

r = uv_tcp_init(uv_default_loop(), &server);
ASSERT(r == 0);
r = uv_listen((uv_stream_t*)&server, 128, NULL);
ASSERT(r == 0);

MAKE_VALGRIND_HAPPY();
return 0;
}

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2023-08-03 03:24:23 -07:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
inet_globals.c net:Add check for address binding 2023-08-03 03:16:31 -07:00
inet_sockif.c inet/inet_sockif.c:In tcp protocol, Add random ports during the listening phase, if no ports are bound 2023-08-03 03:24:23 -07:00
inet_txdrain.c
inet.h net:Add check for address binding 2023-08-03 03:16:31 -07:00
ipv4_build_header.c
ipv4_getpeername.c
ipv4_getsockname.c
ipv4_getsockopt.c
ipv4_setsockopt.c inet/ipv4_setsockopt.c:fix libuv udp option error 2023-08-02 22:54:13 -07:00
ipv6_build_header.c
ipv6_getpeername.c
ipv6_getsockname.c
ipv6_getsockopt.c
ipv6_setsockopt.c
Kconfig
Make.defs