/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | inet_ntop.c | 29 struct in_addr sin_addr; in inet_ntop_0100() local 30 inet_pton(AF_INET, ip4test, &sin_addr); in inet_ntop_0100() 31 const char *ptr = inet_ntop(AF_INET, &sin_addr, ip4test, sizeof(ip4test)); in inet_ntop_0100() 45 struct in_addr sin_addr; in inet_ntop_0200() local 46 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0200() 47 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0200() 61 struct in_addr sin_addr; in inet_ntop_0300() local 62 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0300() 63 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0300() 77 struct in_addr sin_addr; in inet_ntop_0400() local [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_er_ssdp.c | 39 er->filter_addr.s_addr != addr.sin_addr.s_addr) in wps_er_ssdp_rx() 43 inet_ntoa(addr.sin_addr)); in wps_er_ssdp_rx() 108 wps_er_ap_cache_settings(er, &addr.sin_addr); in wps_er_ssdp_rx() 109 wps_er_ap_remove(er, &addr.sin_addr); in wps_er_ssdp_rx() 121 location, inet_ntoa(addr.sin_addr), max_age); in wps_er_ssdp_rx() 123 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); in wps_er_ssdp_rx() 147 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in wps_er_send_ssdp_msearch()
|
D | http_client.c | 61 inet_ntoa(c->dst.sin_addr), in http_client_got_response() 67 inet_ntoa(c->dst.sin_addr), in http_client_got_response() 93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready() 116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready() 211 if (inet_aton(addr, &dst->sin_addr) == 0) { in http_client_url_parse() 269 path, inet_ntoa(dst.sin_addr), in http_client_url()
|
D | http_server.c | 49 inet_ntoa(req->cli.sin_addr), in http_request_cb() 55 "completely", inet_ntoa(req->cli.sin_addr), in http_request_cb() 138 inet_ntoa(req->cli.sin_addr), in http_request_send() 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb() 264 sin.sin_addr.s_addr = addr->s_addr; in http_server_init()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_er_ssdp.c | 39 er->filter_addr.s_addr != addr.sin_addr.s_addr) in wps_er_ssdp_rx() 43 inet_ntoa(addr.sin_addr)); in wps_er_ssdp_rx() 108 wps_er_ap_cache_settings(er, &addr.sin_addr); in wps_er_ssdp_rx() 109 wps_er_ap_remove(er, &addr.sin_addr); in wps_er_ssdp_rx() 121 location, inet_ntoa(addr.sin_addr), max_age); in wps_er_ssdp_rx() 123 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); in wps_er_ssdp_rx() 147 dest.sin_addr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in wps_er_send_ssdp_msearch()
|
D | http_client.c | 61 inet_ntoa(c->dst.sin_addr), in http_client_got_response() 67 inet_ntoa(c->dst.sin_addr), in http_client_got_response() 93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready() 116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready() 211 if (inet_aton(addr, &dst->sin_addr) == 0) { in http_client_url_parse() 269 path, inet_ntoa(dst.sin_addr), in http_client_url()
|
D | http_server.c | 49 inet_ntoa(req->cli.sin_addr), in http_request_cb() 55 "completely", inet_ntoa(req->cli.sin_addr), in http_request_cb() 138 inet_ntoa(req->cli.sin_addr), in http_request_send() 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb() 264 sin.sin_addr.s_addr = addr->s_addr; in http_server_init()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
D | ngtcp2_addr.c | 60 memcmp(&ai->sin_addr, &bi->sin_addr, sizeof(ai->sin_addr)) == 0; in sockaddr_eq() 92 if (memcmp(&ai->sin_addr, &bi->sin_addr, sizeof(ai->sin_addr))) { in ngtcp2_addr_compare()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | ctrl_iface_udp.c | 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 134 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 137 "%s:%d", inet_ntoa(from->sin_addr), 181 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 184 "level %s:%d", inet_ntoa(from->sin_addr), 255 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 263 "source %s", inet_ntoa(from.sin_addr)); 431 addr.sin_addr.s_addr = INADDR_ANY; 433 addr.sin_addr.s_addr = htonl((127 << 24) | 1); 544 inet_ntoa(dst->addr.sin_addr), [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_connectx.c | 96 svr_loop[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 99 svr_test[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 103 svr_try[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i); in main() 106 svr_try[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x400); in main() 110 clt_loop1[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x100); in main() 113 clt_test1[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x100); in main() 116 clt_loop2[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x200); in main() 119 clt_test2[i].v4.sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x200); in main() 122 clt_loop3[i].sin_addr.s_addr = SCTP_IP_LOOPBACK_I(i + 0x300); in main()
|
D | test_getname.c | 90 svr_loop.v4.sin_addr.s_addr = INADDR_ANY; in main() 127 svr_loop.v4.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 195 if (svr_local_addr.v4.sin_addr.s_addr != in main() 196 clt_peer_addr.v4.sin_addr.s_addr) in main() 199 if (svr_peer_addr.v4.sin_addr.s_addr != in main() 200 clt_local_addr.v4.sin_addr.s_addr) in main()
|
D | test_1_to_1_addrs.c | 120 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 124 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 221 addr->sin_addr.s_addr != lstn_addr.sin_addr.s_addr) in main() 278 addr->sin_addr.s_addr != acpt_addr.sin_addr.s_addr) in main()
|
D | test_1_to_1_socket_bind_listen.c | 139 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 168 bind_addr.sin_addr.s_addr = inet_addr(SCTP_INV_LOOPBACK); in main() 178 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 211 bind_addr.sin_addr.s_addr = INADDR_ANY; in main() 246 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
D | getnameinfo.c | 43 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0100() 90 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0300() 109 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0400() 127 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0500() 184 addrDst.sin_addr.s_addr = inet_addr(ptr); in getnameinfo_0900() 204 addrDst.sin_addr.s_addr = inet_addr(ptr); in getnameinfo_1000() 225 addrDst.sin_addr.s_addr = inet_addr(ptr); in getnameinfo_1100() 245 addrDst.sin_addr.s_addr = inet_addr(ptr); in getnameinfo_1200()
|
/third_party/ltp/testcases/network/sockets/ |
D | ltpClient.c | 129 memcpy((char *)&udpRemoteServerAddr.sin_addr.s_addr, in main() 136 memcpy((char *)&tcpRemoteServerAddr.sin_addr.s_addr, in main() 143 memcpy((char *)&mcastRemoteServerAddr.sin_addr.s_addr, in main() 161 udpClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 166 tcpClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 198 if (!IN_MULTICAST(ntohl(mcastRemoteServerAddr.sin_addr.s_addr))) { in main() 202 inet_ntoa(mcastRemoteServerAddr.sin_addr)); in main() 216 mcastClientAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 322 rawTraceAddr.sin_addr.s_addr = *(long *)hostEntry->h_addr; in ltp_run_traceroute_tests() 349 rawAddr.sin_addr.s_addr = *(long *)hostEntry->h_addr; in ltp_run_ping_tests() [all …]
|
D | ltpServer.c | 117 multiServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 174 udpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 191 tcpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 249 hostname, inet_ntoa(udpClientAddr.sin_addr), in ltp_udp_server_queue() 290 inet_ntoa(tcpClientAddr.sin_addr), in ltp_tcp_server_queue() 409 inet_ntoa(multiClientAddr.sin_addr), in ltp_multi_server_queue()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | ctrl_iface_udp.c | 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 134 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 137 "%s:%d", inet_ntoa(from->sin_addr), 181 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && 184 "level %s:%d", inet_ntoa(from->sin_addr), 260 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { 268 "source %s", inet_ntoa(from.sin_addr)); 447 addr.sin_addr.s_addr = INADDR_ANY; 449 addr.sin_addr.s_addr = htonl((127 << 24) | 1); 564 inet_ntoa(dst->addr.sin_addr), [all …]
|
/third_party/ffmpeg/libavformat/ |
D | os_support.c | 80 if (!inet_aton(node, &sin->sin_addr)) { in ff_getaddrinfo() 90 memcpy(&sin->sin_addr, h->h_addr_list[0], sizeof(struct in_addr)); in ff_getaddrinfo() 94 sin->sin_addr.s_addr = INADDR_ANY; in ff_getaddrinfo() 96 sin->sin_addr.s_addr = INADDR_LOOPBACK; in ff_getaddrinfo() 156 ent = gethostbyaddr((const char *)&sin->sin_addr, in ff_getnameinfo() 157 sizeof(sin->sin_addr), AF_INET); in ff_getnameinfo() 164 a = ntohl(sin->sin_addr.s_addr); in ff_getnameinfo()
|
/third_party/toybox/toys/pending/ |
D | route.c | 85 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname() 89 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname() 91 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname() 207 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in get_next_params() 243 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in verify_netmask() 244 …unsigned int router_addr = ~(unsigned int)(((struct sockaddr_in *)&((rt)->rt_dst))->sin_addr.s_add… in verify_netmask() 251 addr_mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in verify_netmask() 276 (((struct sockaddr_in *)&rt.rt_genmask)->sin_addr.s_addr) in setroute() 291 (((struct sockaddr_in *)&((rt).rt_genmask))->sin_addr.s_addr) = INVALID_ADDR; in setroute()
|
D | traceroute.c | 295 if (memcmp(&((struct sockaddr_in *)&last_addr)->sin_addr, in do_trace() 296 &((struct sockaddr_in *)&from)->sin_addr, in do_trace() 304 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 307 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 315 rcv_len, inet_ntoa(((struct sockaddr_in *)&from)->sin_addr), in do_trace() 470 if (!memcmp(&((struct sockaddr_in *)&from)->sin_addr, in do_trace() 471 &((struct sockaddr_in *)&dest)->sin_addr, sizeof(struct in_addr)) in do_trace() 500 TT.gw_list[lsrr] = sin.sin_addr.s_addr; in traceroute_main() 542 TT.gw_list[lsrr] = ((struct sockaddr_in *)&dest)->sin_addr.s_addr; in traceroute_main() 584 if (!inet_aton(TT.src_ip, &(source.sin_addr))) in traceroute_main() [all …]
|
/third_party/libwebsockets/lib/core-net/ |
D | network.c | 107 addr4.sin_addr = in lws_get_addresses() 108 ((struct sockaddr_in *)res->ai_addr)->sin_addr; in lws_get_addresses() 121 if (lws_plat_inet_ntop(AF_INET, &addr4.sin_addr, rip, in lws_get_addresses() 289 serv_addr4.sin_addr.s_addr = INADDR_ANY; in lws_socket_bind() 809 memcpy(&sa46->sa4.sin_addr.s_addr, a, in lws_sa46_parse_numeric_address() 810 sizeof(sa46->sa4.sin_addr.s_addr)); in lws_sa46_parse_numeric_address() 894 (uint8_t *)&sa46->sa4.sin_addr, 4, buf, len); in lws_sa46_write_numeric_address() 924 return sa46a->sa4.sin_addr.s_addr != sa46b->sa4.sin_addr.s_addr; in lws_sa46_compare_ads() 962 p1 = (uint8_t *)&sa46a->sa4.sin_addr; in lws_sa46_on_net() 978 p2 = (uint8_t *)&sa46_net->sa4.sin_addr; in lws_sa46_on_net() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 67 sin1.sin_addr.s_addr = INADDR_ANY; in test_setup() 71 sin2.sin_addr.s_addr = INADDR_ANY; in test_setup() 76 sin3.sin_addr.s_addr = htonl(0x0AFFFEFD); in test_setup()
|
/third_party/ltp/lib/ |
D | tst_net.c | 153 switch (ntohl(inet_ptr->sin_addr.s_addr)) { in tst_get_connect_address() 156 inet_ptr->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in tst_get_connect_address() 182 tst_get_in_addr(ip_str, &sa->sin_addr); in tst_init_sockaddr_inet() 190 sa->sin_addr.s_addr = htonl(ip_val); in tst_init_sockaddr_inet_bin()
|
/third_party/pulseaudio/src/pulsecore/ |
D | pipe.c | 102 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pipe() 137 if ((addr.sin_port != peer.sin_port) || (addr.sin_addr.s_addr != peer.sin_addr.s_addr)) in pipe()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | ioctl.c | 102 printf("address: %s\n", inet_ntoa(((struct sockaddr_in *)&(ifr[i].ifr_addr))->sin_addr)); in ioctl_0200() 111 strcpy(interAddr, inet_ntoa(((struct sockaddr_in *)&(ifr[0].ifr_addr))->sin_addr)); in ioctl_0200() 117 EXPECT_STREQ("ioctl_0200", interAddr, inet_ntoa(srvAddr->sin_addr)); in ioctl_0200()
|