Home
last modified time | relevance | path

Searched refs:tcp_port (Results 1 – 25 of 28) sorted by relevance

12

/third_party/lwip/
D0030-refactor-tcp-new-port.patch82 - tcp_port++;
83 - if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
84 - tcp_port = TCP_LOCAL_PORT_RANGE_START;
89 - if (pcb->local_port == tcp_port) {
94 + tcp_port++;
95 + if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
96 + tcp_port = TCP_LOCAL_PORT_RANGE_START;
99 + if (__atomic_load_n(&port_state[tcp_port - TCP_LOCAL_PORT_RANGE_START], __ATOMIC_ACQUIRE) ==…
101 … if (port_in_stack_queue(pcb->remote_ip.addr, pcb->local_ip.addr, pcb->remote_port, tcp_port)) {
102 + tmp_port = tcp_port;
[all …]
D0015-fix-tcp-port-alloc-issue.patch26 + tmp_port = tcp_port;
29 - return tcp_port;
D0080-enable-ipv6.patch170 … if (__atomic_load_n(&port_state[tcp_port - TCP_LOCAL_PORT_RANGE_START], __ATOMIC_ACQUIRE) == 0) {
172 … if (port_in_stack_queue(pcb->remote_ip.addr, pcb->local_ip.addr, pcb->remote_port, tcp_port)) {
173 + if (port_in_stack_queue(pcb->remote_ip, pcb->local_ip, pcb->remote_port, tcp_port)) {
174 tmp_port = tcp_port;
175 … __atomic_store_n(&port_state[tcp_port - TCP_LOCAL_PORT_RANGE_START], 1, __ATOMIC_RELEASE);
D0053-cleancode-improve-lwipopts.h-readability.patch639 tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
761 … if (__atomic_load_n(&port_state[tcp_port - TCP_LOCAL_PORT_RANGE_START], __ATOMIC_ACQUIRE) == 0) {
764 … if (port_in_stack_queue(pcb->remote_ip.addr, pcb->local_ip.addr, pcb->remote_port, tcp_port)) {
765 tmp_port = tcp_port;
766 … __atomic_store_n(&port_state[tcp_port - TCP_LOCAL_PORT_RANGE_START], 1, __ATOMIC_RELEASE);
/third_party/lwip/src/core/distributed_net/
Ddistributed_net.c53 static int try_connect_to_local_tcp_server(u16_t tcp_port) in try_connect_to_local_tcp_server() argument
57 INIT_SOCK_ADDR(&addr, LOCAL_SERVER_IP, tcp_port); in try_connect_to_local_tcp_server()
114 int enable_distributed_net(u16_t tcp_port, u16_t udp_port) in enable_distributed_net() argument
118 if (get_local_tcp_server_port() == tcp_port && get_local_udp_server_port() == udp_port) { in enable_distributed_net()
126 if (try_connect_to_local_tcp_server(tcp_port) < 0) { in enable_distributed_net()
133 g_local_tcp_server_port = tcp_port; in enable_distributed_net()
/third_party/node/deps/cares/src/lib/
Dares_options.c120 srvr_curr->tcp_port = ntohs((unsigned short)channel->servers[i].addr.tcp_port); in ares_get_servers_ports()
180 channel->servers[i].addr.tcp_port = 0; in ares_set_servers()
232 channel->servers[i].addr.tcp_port = htons((unsigned short)srvr->tcp_port); in ares_set_servers_ports()
362 s->tcp_port = s->udp_port; in set_servers_csv()
Dares_init.c134 channel->tcp_port = -1; in ares_init_options()
302 (src->servers[i].addr.tcp_port != 0)) { in ares_dup()
363 options->tcp_port = ntohs(aresx_sitous(channel->tcp_port)); in ares_save_options()
373 (channel->servers[i].addr.tcp_port == 0)) in ares_save_options()
384 (channel->servers[i].addr.tcp_port == 0)) in ares_save_options()
466 if ((optmask & ARES_OPT_TCP_PORT) && channel->tcp_port == -1) in init_by_options()
467 channel->tcp_port = htons(options->tcp_port); in init_by_options()
497 channel->servers[i].addr.tcp_port = 0; in init_by_options()
1174 pserver->addr.tcp_port = addr_in->sin_port; in init_by_resolv_conf()
1183 pserver->addr.tcp_port = addr_in->sin6_port; in init_by_resolv_conf()
[all …]
Dares_private.h144 int tcp_port; /* stored in network order */ member
274 int tcp_port; /* stored in network order */ member
Dares_process.c1093 if (server->addr.tcp_port) { in open_tcp_socket()
1094 saddr.sa4.sin_port = aresx_sitous(server->addr.tcp_port); in open_tcp_socket()
1096 saddr.sa4.sin_port = aresx_sitous(channel->tcp_port); in open_tcp_socket()
1106 if (server->addr.tcp_port) { in open_tcp_socket()
1107 saddr.sa6.sin6_port = aresx_sitous(server->addr.tcp_port); in open_tcp_socket()
1109 saddr.sa6.sin6_port = aresx_sitous(channel->tcp_port); in open_tcp_socket()
Dares_data.c222 ptr->data.addr_port_node.tcp_port = 0; in ares_malloc_data()
/third_party/pulseaudio/src/modules/dbus/
Dmodule-dbus-protocol.c65 uint32_t tcp_port; member
464 address = pa_sprintf_malloc("tcp:host=%s,port=%u", u->tcp_listen, u->tcp_port); in start_tcp_server()
529 u->tcp_port = PA_DBUS_DEFAULT_PORT; in pa__init()
536 …if (pa_modargs_get_value_u32(ma, "tcp_port", &u->tcp_port) < 0 || u->tcp_port < 1 || u->tcp_port >… in pa__init()
/third_party/ltp/testcases/network/netstress/
Dnetstress.c81 static char *tcp_port; variable
473 SAFE_GETADDRINFO(server_addr, tcp_port, &hints, &remote_addrinfo); in client_init()
663 if (!source_addr && !tcp_port) in server_init()
664 tcp_port = "0"; in server_init()
668 SAFE_GETADDRINFO(src_addr ? src_addr : source_addr, tcp_port, in server_init()
895 server_addr, tcp_port); in setup()
1005 {"g:", &tcp_port, "Server port"},
/third_party/lwip/src/include/lwip/distributed_net/
Ddistributed_net.h77 int enable_distributed_net(u16_t tcp_port, u16_t udp_port);
/third_party/node/deps/v8/src/debug/wasm/gdb-server/
Dtransport.cc24 SocketBinding SocketBinding::Bind(uint16_t tcp_port) { in Bind() argument
36 sockaddr.sin_port = htons(tcp_port); in Bind()
Dtransport.h58 static SocketBinding Bind(uint16_t tcp_port);
/third_party/lwip/src/core/
Dtcp.c162 static volatile u16_t tcp_port = TCP_LOCAL_PORT_RANGE_START; variable
218 tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in tcp_init()
1184 tcp_port++;
1185 if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
1186 tcp_port = TCP_LOCAL_PORT_RANGE_START;
1191 if (pcb->local_port == tcp_port) {
1200 return tcp_port;
/third_party/cares/include/
Dares.h265 unsigned short tcp_port; member
725 int tcp_port; member
/third_party/node/deps/cares/include/
Dares.h274 unsigned short tcp_port; member
735 int tcp_port; member
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Ddpp_supplicant.c442 int tcp_port = DPP_TCP_PORT; in wpas_dpp_auth_init() local
464 tcp_port = atoi(pos); in wpas_dpp_auth_init()
548 return dpp_tcp_init(wpa_s->dpp, auth, &ipaddr, tcp_port); in wpas_dpp_auth_init()
2321 config.tcp_port = atoi(pos); in wpas_dpp_controller_start()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Ddpp_hostapd.c557 int tcp_port = DPP_TCP_PORT; in hostapd_dpp_auth_init() local
577 tcp_port = atoi(pos); in hostapd_dpp_auth_init()
665 &ipaddr, tcp_port, hapd->conf->dpp_name, in hostapd_dpp_auth_init()
2369 config.tcp_port = atoi(pos); in hostapd_dpp_controller_start()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddpp.h277 int tcp_port; member
/third_party/node/deps/cares/src/tools/
Dadig.c298 options.tcp_port = (unsigned short)strtol(optarg, NULL, 0); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddpp.h397 int tcp_port; member
Ddpp_tcp.c1694 port = config->tcp_port ? config->tcp_port : DPP_TCP_PORT; in dpp_controller_start()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Ddpp_supplicant.c756 int tcp_port = DPP_TCP_PORT; in wpas_dpp_auth_init() local
778 tcp_port = atoi(pos); in wpas_dpp_auth_init()
875 return dpp_tcp_init(wpa_s->dpp, auth, &ipaddr, tcp_port, in wpas_dpp_auth_init()
3496 config.tcp_port = atoi(pos); in wpas_dpp_controller_start()

12