/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | getsockopt_network.c | 35 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0100() 49 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0200() 63 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0300() 77 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0400() 91 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0500() 105 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0600() 119 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0700() 133 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0800() 147 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_0900() 161 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in getsockopt_1000() [all …]
|
D | send.c | 38 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerTask() 46 srvAddr.sin_family = AF_INET; in SampleServerTask() 75 int clnFd = socket(AF_INET, SOCK_STREAM, 0); in SampleClientTask() 78 srvAddr.sin_family = AF_INET; in SampleClientTask() 96 int sListen = socket(AF_INET, SOCK_STREAM, 0); in SampleServerNullTask() 104 srvAddr.sin_family = AF_INET; in SampleServerNullTask() 129 int clnFd = socket(AF_INET, SOCK_STREAM, 0); in SampleClientNullTask() 132 srvAddr.sin_family = AF_INET; in SampleClientNullTask()
|
D | accept4.c | 40 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskOne() 51 srvAddr.sin_family = AF_INET; in ServerTaskOne() 81 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskTwo() 92 srvAddr.sin_family = AF_INET; in ServerTaskTwo() 122 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskThree() 133 srvAddr.sin_family = AF_INET; in ServerTaskThree() 163 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskFive() 174 srvAddr.sin_family = AF_INET; in ServerTaskFive() 204 int sListen = socket(AF_INET, SOCK_STREAM, 0); in ServerTaskSix() 214 srvAddr.sin_family = AF_INET; in ServerTaskSix() [all …]
|
/third_party/glib/gio/ |
D | ginetaddress.c | 106 address->priv->family == AF_INET ? in g_inet_address_set_property() 110 g_assert (address->priv->family == AF_INET); in g_inet_address_set_property() 408 if (inet_pton (AF_INET, string, &in_addr) > 0) in g_inet_address_new_from_string() 409 return g_inet_address_new_from_bytes ((guint8 *)&in_addr, AF_INET); in g_inet_address_new_from_string() 418 #define G_INET_ADDRESS_FAMILY_IS_VALID(family) ((family) == AF_INET || (family) == AF_INET6) 463 if (family == AF_INET) in g_inet_address_new_loopback() 495 if (family == AF_INET) in g_inet_address_new_any() 528 if (address->priv->family == AF_INET) in g_inet_address_to_string() 530 inet_ntop (AF_INET, &address->priv->addr.ipv4, buffer, sizeof (buffer)); in g_inet_address_to_string() 578 if (address->priv->family == AF_INET) in g_inet_address_get_native_size() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
D | getnameinfo.c | 37 sa.sin_family = AF_INET; in getnameinfo_0100() 38 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0100() 84 sa.sin_family = AF_INET; in getnameinfo_0300() 85 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0300() 103 sa.sin_family = AF_INET; in getnameinfo_0400() 104 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0400() 121 sa.sin_family = AF_INET; in getnameinfo_0500() 122 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0500()
|
/third_party/node/test/cctest/ |
D | test_sockaddr.cc | 14 SocketAddress::ToSockAddr(AF_INET, "123.123.123.123", 443, &storage); in TEST() 15 SocketAddress::ToSockAddr(AF_INET, "1.1.1.1", 80, &storage2); in TEST() 21 CHECK_EQ(addr.family(), AF_INET); in TEST() 36 CHECK_EQ(addr.family(), AF_INET); in TEST() 83 SocketAddress::ToSockAddr(AF_INET, "123.123.123.123", 443, &storage[0]); in TEST() 84 SocketAddress::ToSockAddr(AF_INET, "123.123.123.124", 443, &storage[1]); in TEST() 85 SocketAddress::ToSockAddr(AF_INET, "123.123.123.125", 443, &storage[2]); in TEST() 86 SocketAddress::ToSockAddr(AF_INET, "123.123.123.123", 443, &storage[3]); in TEST() 134 SocketAddress::ToSockAddr(AF_INET, "10.0.0.1", 0, &storage[0]); in TEST() 135 SocketAddress::ToSockAddr(AF_INET, "10.0.0.2", 0, &storage[1]); in TEST() [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_connectx.c | 95 svr_loop[i].sin_family = AF_INET; in main() 98 svr_test[i].v4.sin_family = AF_INET; in main() 101 svr_try[i].sin_family = AF_INET; in main() 109 clt_loop1[i].sin_family = AF_INET; in main() 112 clt_test1[i].v4.sin_family = AF_INET; in main() 115 clt_loop2[i].sin_family = AF_INET; in main() 118 clt_test2[i].v4.sin_family = AF_INET; in main() 121 clt_loop3[i].sin_family = AF_INET; in main() 127 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 135 clt_sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() [all …]
|
D | test_connect.c | 80 svr_loop.v4.sin_family = AF_INET; in main() 83 clt_loop1.v4.sin_family = AF_INET; in main() 86 clt_loop2.v4.sin_family = AF_INET; in main() 89 clt_loop3.v4.sin_family = AF_INET; in main() 94 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 101 clt_sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 103 clt_sk2 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
|
/third_party/node/deps/cares/src/lib/ |
D | ares__addrinfo_localhost.c | 54 if (aftype == AF_INET) in ares_append_ai_node() 64 sin->sin_family = AF_INET; in ares_append_ai_node() 68 node->ai_family = AF_INET; in ares_append_ai_node() 115 if (aftype == AF_UNSPEC || aftype == AF_INET) in ares__default_loopback_addrs() 118 ares_inet_pton(AF_INET, "127.0.0.1", &addr4); in ares__default_loopback_addrs() 119 status = ares_append_ai_node(AF_INET, port, 0, &addr4, nodes); in ares__default_loopback_addrs() 152 if (table->Table[i].Address.si_family == AF_INET) in ares__system_loopback_addrs() 210 case AF_INET: in ares__addrinfo_localhost()
|
D | ares_getnameinfo.c | 86 if ((sa->sa_family == AF_INET) && in ares_getnameinfo() 148 ares_inet_ntop(AF_INET, &addr->sin_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo() 170 if (sa->sa_family == AF_INET) in ares_getnameinfo() 172 niquery->family = AF_INET; in ares_getnameinfo() 175 sizeof(struct in_addr), AF_INET, in ares_getnameinfo() 203 if (niquery->family == AF_INET) in nameinfo_callback() 238 if (niquery->family == AF_INET) in nameinfo_callback() 239 ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf, in nameinfo_callback() 253 if (niquery->family == AF_INET) in nameinfo_callback()
|
D | ares_gethostbyaddr.c | 63 if (family != AF_INET && family != AF_INET6) in ares_gethostbyaddr() 69 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addrV4)) || in ares_gethostbyaddr() 83 if (family == AF_INET) in ares_gethostbyaddr() 140 if (aquery->addr.family == AF_INET) in addr_callback() 144 (int)addrlen, AF_INET, &host); in addr_callback() 236 if (addr->family == AF_INET) in file_lookup() 260 if (addr->family == AF_INET) in ptr_rr_name()
|
/third_party/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 51 server_sockfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in server_thread() 84 client_sockfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in client_thread() 118 mc_group_addr->sin_family = AF_INET; in setup() 121 server_addr->sin_family = AF_INET; in setup() 124 client_addr->sin_family = AF_INET; in setup() 129 server_port = TST_GET_UNUSED_PORT(AF_INET, SOCK_STREAM); in setup()
|
/third_party/grpc/test/cpp/naming/ |
D | address_sorting_test.cc | 71 if (test_addr.family == AF_INET) { in TestAddressToGrpcResolvedAddress() 75 in_dest.sin_family = AF_INET; in TestAddressToGrpcResolvedAddress() 76 GPR_ASSERT(inet_pton(AF_INET, host.c_str(), &in_dest.sin_addr) == 1); in TestAddressToGrpcResolvedAddress() 204 {"1.2.3.4:443", {"4.3.2.1:443", AF_INET}}, in TEST_F() 207 {"1.2.3.4:443", AF_INET}, in TEST_F() 208 {"5.6.7.8:443", AF_INET}, in TEST_F() 223 {"1.2.3.4:443", {"4.3.2.1:0", AF_INET}}, in TEST_F() 227 {"1.2.3.4:443", AF_INET}, in TEST_F() 242 {"1.2.3.4:443", {"4.3.2.1:0", AF_INET}}, in TEST_F() 247 {"1.2.3.4:443", AF_INET}, in TEST_F() [all …]
|
/third_party/libcoap/src/ |
D | address.c | 36 case AF_INET: return ntohs(addr->addr.sin.sin_port); in coap_address_get_port() 48 case AF_INET: in coap_address_set_port() 68 case AF_INET: in coap_address_equals() 90 case AF_INET: in coap_is_bcast() 110 case AF_INET: in coap_is_mcast() 142 if (addr->addr.sa.sa_family == AF_INET) { in coap_address_ntop()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | sdp.c | 51 pa_assert(af == AF_INET || af == AF_INET6); in pa_sdp_build() 53 pa_assert(af == AF_INET); in pa_sdp_build() 76 u, (unsigned long) ntp, af == AF_INET ? "IP4" : "IP6", buf_src, in pa_sdp_build() 78 af == AF_INET ? "IP4" : "IP6", buf_dst, in pa_sdp_build() 151 if (inet_pton(AF_INET, a, &((struct sockaddr_in*) &i->sa)->sin_addr) <= 0) { in pa_sdp_parse() 156 ((struct sockaddr_in*) &i->sa)->sin_family = AF_INET; in pa_sdp_parse() 237 if (((struct sockaddr*) &i->sa)->sa_family == AF_INET) in pa_sdp_parse()
|
/third_party/pulseaudio/src/pulsecore/ |
D | ipacl.c | 89 if (inet_pton(AF_INET, a, &e.address_ipv4) > 0) { in pa_ip_acl_new() 98 e.family = AF_INET; in pa_ip_acl_new() 180 if (sa.ss_family != AF_INET && sa.ss_family != AF_INET6) in pa_ip_acl_check() 182 if (sa.ss_family != AF_INET) in pa_ip_acl_check() 186 if (sa.ss_family == AF_INET && salen != sizeof(struct sockaddr_in)) in pa_ip_acl_check() 199 if (e->family == AF_INET) { in pa_ip_acl_check()
|
/third_party/musl/src/network/ |
D | getaddrinfo.c | 42 case AF_INET: in getaddrinfo() 56 .sin_family = AF_INET, .sin_port = 65535, in getaddrinfo() 64 int tf[2] = { AF_INET, AF_INET6 }; in getaddrinfo() 119 .ai_addrlen = addrs[i].family == AF_INET in getaddrinfo() 126 case AF_INET: in getaddrinfo() 127 out[k].sa.sin.sin_family = AF_INET; in getaddrinfo()
|
D | lookup_name.c | 36 buf[cnt++] = (struct address){ .family = AF_INET }; in name_from_null() 37 if (family != AF_INET) in name_from_null() 41 buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; in name_from_null() 42 if (family != AF_INET) in name_from_null() 118 ctx->addrs[ctx->cnt].family = AF_INET; in dns_parse_callback() 147 { .af = AF_INET, .rr = RR_AAAA }, in name_from_dns() 343 if (buf[i].family != AF_INET) continue; in __lookup_name() 352 if (cnt<2 || family==AF_INET) return cnt; in __lookup_name() 353 for (i=0; i<cnt; i++) if (buf[i].family != AF_INET) break; in __lookup_name() 373 .sin_family = AF_INET, in __lookup_name() [all …]
|
D | res_msend.c | 42 int family = AF_INET; in __res_msend_rc() 57 if (iplit->family == AF_INET) { in __res_msend_rc() 60 ns[nns].sin.sin_family = AF_INET; in __res_msend_rc() 76 fd = socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); in __res_msend_rc() 77 family = AF_INET; in __res_msend_rc() 96 if (ns[i].sin.sin_family != AF_INET) continue; in __res_msend_rc()
|
/third_party/python/Lib/test/ |
D | test_timeout.py | 24 return socket.getaddrinfo(host, port, socket.AF_INET, 32 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 148 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 202 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 250 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 259 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 269 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 281 self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 64 sin1.sin_family = AF_INET; in test_setup() 66 sin1.sin_port = TST_GET_UNUSED_PORT(AF_INET, SOCK_STREAM); in test_setup() 69 sin2.sin_family = AF_INET; in test_setup() 73 sin3.sin_family = AF_INET; in test_setup()
|
/third_party/lwip/test/unit/api/ |
D | test_sockets.c | 80 s = lwip_socket(AF_INET, SOCK_STREAM, 0); in START_TEST() 85 s2[i] = lwip_socket(AF_INET, SOCK_STREAM, 0); in START_TEST() 90 s = lwip_socket(AF_INET, SOCK_STREAM, 0); in START_TEST() 96 s2[0] = lwip_socket(AF_INET, SOCK_STREAM, 0); in START_TEST() 127 if (domain == AF_INET) { in test_sockets_allfunctions_basic_domain() 211 test_sockets_allfunctions_basic_domain(AF_INET); in START_TEST() 235 case AF_INET: { in test_sockets_init_loopback_addr() 237 addr->sin_family = AF_INET; in test_sockets_init_loopback_addr() 511 case AF_INET: in test_sockets_msgapi_udp() 641 test_sockets_msgapi_udp(AF_INET); in START_TEST() [all …]
|
/third_party/toybox/toys/net/ |
D | ping.c | 106 else if (FLAG(4)) family = AF_INET; in ping_main() 112 if (!(toys.optflags&FLAG_6) && inet_pton(AF_INET, TT.I, in ping_main() 114 family = AF_INET; in ping_main() 128 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main() 149 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main() 169 if (ai->ai_family == AF_INET) in ping_main() 212 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
|
/third_party/lwip/src/api/ |
D | netdb.c | 116 s_hostent.h_addrtype = AF_INET; in lwip_gethostbyname() 216 ret->h_addrtype = AF_INET; in lwip_gethostbyname_r() 292 && (ai_family != AF_INET) in lwip_getaddrinfo() 325 if ((IP_IS_V6_VAL(addr) && ai_family == AF_INET) || in lwip_getaddrinfo() 334 if (ai_family == AF_INET) { in lwip_getaddrinfo() 391 sa4->sin_family = AF_INET; in lwip_getaddrinfo() 394 ai->ai_family = AF_INET; in lwip_getaddrinfo()
|
/third_party/toybox/porting/liteos_a/toys/net/ |
D | ping.c | 110 else if (FLAG(4)) family = AF_INET; in ping_main() 116 if (!(toys.optflags&FLAG_6) && inet_pton(AF_INET, TT.I, in ping_main() 118 family = AF_INET; in ping_main() 132 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main() 153 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main() 174 if (ai->ai_family == AF_INET) in ping_main() 215 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
|