Searched refs:addr_in (Results 1 – 5 of 5) sorted by relevance
/third_party/lwip/src/core/distributed_net/ |
D | distributed_net_core.c | 51 struct sockaddr_in addr_in = {0}; in distributed_net_connect() local 52 (void)memset_s(&addr_in, sizeof(addr_in), 0, sizeof(addr_in)); in distributed_net_connect() 53 (void)memcpy_s(&addr_in, sizeof(addr_in), addr, MIN(sizeof(addr_in), addr_len)); in distributed_net_connect() 54 if (is_no_proxy_network_segment(&addr_in)) { in distributed_net_connect() 58 (void)memset_s(&addr_in, sizeof(addr_in), 0, sizeof(addr_in)); in distributed_net_connect() 59 INIT_SOCK_ADDR(&addr_in, LOCAL_SERVER_IP, get_local_tcp_server_port()); in distributed_net_connect() 63 if (lwip_connect_internal(sock, (struct sockaddr *)&addr_in, sizeof(addr_in)) < 0) { in distributed_net_connect() 70 (void)memset_s(&addr_in, sizeof(addr_in), 0, sizeof(addr_in)); in distributed_net_connect() 71 (void)memcpy_s(&addr_in, sizeof(addr_in), addr, MIN(sizeof(addr_in), addr_len)); in distributed_net_connect() 75 (void)strcpy_s(data.dest_addr, sizeof(data.dest_addr), inet_ntoa(addr_in.sin_addr)); in distributed_net_connect() [all …]
|
D | distributed_net_utils.c | 91 u8_t is_no_proxy_network_segment(const struct sockaddr_in *addr_in) in is_no_proxy_network_segment() argument 94 ip4_addr_t ip4_ip = {addr_in->sin_addr.s_addr}; in is_no_proxy_network_segment()
|
/third_party/lwip/src/include/lwip/distributed_net/ |
D | distributed_net_utils.h | 44 u8_t is_no_proxy_network_segment(const struct sockaddr_in *addr_in);
|
/third_party/node/deps/cares/src/lib/ |
D | ares_init.c | 1170 struct sockaddr_in *addr_in = &(res->nsaddr_list[i]); in init_by_resolv_conf() local 1171 pserver->addr.addrV4.s_addr = addr_in->sin_addr.s_addr; in init_by_resolv_conf() 1173 pserver->addr.udp_port = addr_in->sin_port; in init_by_resolv_conf() 1174 pserver->addr.tcp_port = addr_in->sin_port; in init_by_resolv_conf() 1178 struct sockaddr_in6 *addr_in = &(v6->__stat_nsaddr_list[j]); in init_by_resolv_conf() local 1179 memcpy(&(pserver->addr.addr.addr6), &(addr_in->sin6_addr), in init_by_resolv_conf() 1180 sizeof(addr_in->sin6_addr)); in init_by_resolv_conf() 1182 pserver->addr.udp_port = addr_in->sin6_port; in init_by_resolv_conf() 1183 pserver->addr.tcp_port = addr_in->sin6_port; in init_by_resolv_conf()
|
/third_party/lwip/test/sockets/ |
D | sockets_stresstest.c | 434 struct sockaddr_in *addr_in; in sockets_stresstest_conn_client() local 445 addr_in = (struct sockaddr_in *)&addr; in sockets_stresstest_conn_client() 446 addr_in->sin_addr.s_addr = inet_addr("127.0.0.1"); in sockets_stresstest_conn_client()
|