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 support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
ipv4_getpeername.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv4_getsockname.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv4_getsockopt.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv4_setsockopt.c inet/ipv4_setsockopt.c:fix libuv udp option error 2023-08-02 22:54:13 -07:00
ipv6_build_header.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
ipv6_getpeername.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv6_getsockname.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv6_getsockopt.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
ipv6_setsockopt.c ipv6_setsockopt: Merge similarity logic 2023-05-15 16:48:18 +08:00
Kconfig
Make.defs support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00