/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | inet_ntop.c | 30 inet_pton(AF_INET, ip4test, &sin_addr); in inet_ntop_0100() 46 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0200() 62 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0300() 78 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0400() 93 inet_pton(AF_UNIX, ip4test, &sin_addr); in inet_ntop_0500() 107 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0600()
|
/third_party/ltp/testcases/network/lib6/ |
H A D | in6_01.c | 115 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def() 116 tst_brk(TBROK | TERRNO, "inet_pton(\"::1\")"); in test_global_in6_def() 135 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped() 170 rv = inet_pton(AF_INET, sstab[i].addr, &psin->sin_addr); in test_sockaddr_storage() 173 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
|
/third_party/musl/libc-test/src/functional/ |
H A D | inet_pton.c | 1 // inet_addr, inet_ntoa, inet_pton and inet_ntop tests with roundtrip check 35 r=inet_pton(AF_INET6,src,binaddr); \ 37 t_error("inet_pton(AF_INET6, "#src", addr) returned %d, want %d\n", r, ret); \ 41 t_error("inet_pton(AF_INET6, "#src", addr) got addr %s, want %s\n", hexaddr, hex); \ 46 if (inet_pton(AF_INET6,txtaddr,binaddr)!=1) \ 47 t_error("inet_ntop(AF_INET6, <"#hex">, buf, size) got %s, it is rejected by inet_pton\n", txtaddr); \ 55 // ret and hex are the results of inet_pton and inet_addr respectively 68 r=inet_pton(AF_INET,src,&a); \ 70 t_error("inet_pton(AF_INET, "#src", addr) returned %d, want %d\n", r, ret); \ 76 t_error("inet_pton(AF_INE [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | inet_pton-empty-last-field.c | 25 if (inet_pton(AF_INET6, addr, buf)!=1 || memcmp(buf, want, 16)!=0) { in main() 28 t_error("inet_pton(%s) returned %s, wanted %s\n", in main() 33 if (inet_pton(AF_INET6, addr, buf)!=0) { in main() 35 t_error("inet_pton(%s) returned %s, wanted a failure\n", in main()
|
H A D | inet_ntop-v4mapped.c | 12 if (inet_pton(AF_INET6, expect, addr) == 1) { in main() 18 t_error("inet_pton failed\n"); in main()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | parseaddr.c | 143 if (inet_pton(AF_INET6, a, buf) >= 1) in pa_is_ip_address() 146 if (inet_pton(AF_INET, a, buf) >= 1) in pa_is_ip_address() 157 if (inet_pton(AF_INET6, a, buf) >= 1) in pa_is_ip6_address()
|
H A D | arpa-inet.h | 11 * the inet_ntop and inet_pton functions, which are implemented here on versions earlier than Vista. */ 19 int inet_pton(int af, const char *src, void *dst);
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
H A 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()
|
/third_party/ltp/lib/ |
H A D | tst_net.c | 69 ret = inet_pton(AF_INET, prefix, &in); in tst_ipv4_mask_to_int() 131 if (inet_pton(AF_INET, ip_str, ip) <= 0) in tst_get_in_addr() 137 if (inet_pton(AF_INET6, ip_str, ip6) <= 0) in tst_get_in6_addr()
|
/third_party/musl/src/network/ |
H A D | inet_pton.c | 15 int inet_pton(int af, const char *restrict s, void *restrict a0) in inet_pton() function 70 if (need_v4 && inet_pton(AF_INET, (void *)s, a-4) <= 0) return 0; in inet_pton()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_network.cpp | 181 benchmark::DoNotOptimize(inet_pton(AF_INET, "127.0.0.1", buf)); in Bm_function_Inet_pton() 188 if (inet_pton(AF_INET, "127.0.0.1", &addr.s_addr) <= 0) { in Bm_function_Inet_ntop() 189 perror("inet_pton failed"); in Bm_function_Inet_ntop() 199 if (inet_pton(AF_INET6, "fe80::cd01:7cd8:bd13:98d5", &addr.s6_addr) <= 0) { in Bm_function_Inet_ntop_ipv6() 200 perror("inet_pton failed"); in Bm_function_Inet_ntop_ipv6()
|
/third_party/backends/include/sane/ |
H A D | config.h | 156 /* Define to 1 if you have the `inet_pton' function. */ 735 /* Prototype for inet_pton */ 737 #define inet_pton sanei_inet_pton macro 738 int inet_pton (int af, const char *src, void *dst);
|
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
H A D | arpa_inet_test.cpp | 12 * @tc.desc: Test inet_pton function replaces addr dotted decimal string with an IPv4 address string 18 int result = inet_pton(AF_INET, "127.0.0.1", &(addr.sin_addr)); in HWTEST_F() 280 * @tc.desc: Verify that the inet_pton function correctly converts a string representation of an IPv4 address to its 288 EXPECT_EQ(1, inet_pton(AF_INET, "127.0.0.1", &ss0)); in HWTEST_F() 305 EXPECT_EQ(1, inet_pton(AF_INET6, "::1", &ss1)); in HWTEST_F()
|
/third_party/curl/lib/ |
H A D | inet_pton.h | 35 #define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
|
/third_party/pulseaudio/src/modules/rtp/ |
H A D | module-rtp-send.c | 319 if (inet_pton(AF_INET, src_addr, &src_sa4.sin_addr) > 0) { in pa__init() 325 } else if (inet_pton(AF_INET6, src_addr, &src_sa6.sin6_addr) > 0) { in pa__init() 341 if (inet_pton(AF_INET, dst_addr, &dst_sa4.sin_addr) > 0) { in pa__init() 348 } else if (inet_pton(AF_INET6, dst_addr, &dst_sa6.sin6_addr) > 0) { in pa__init()
|
/third_party/backends/lib/ |
H A D | inet_pton.c | 17 inet_pton (int af, const char *src, void *dst) in inet_pton() function
|
/third_party/musl/porting/liteos_m/kernel/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/musl/porting/uniproton/kernel/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/musl/porting/liteos_a/kernel/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/musl/include/arpa/ |
H A D | inet.h | 19 int inet_pton (int, const char *__restrict, void *__restrict);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | ip_addr.c | 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | ip_addr.c | 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr()
|
/third_party/libwebsockets/lib/plat/freertos/ |
H A D | freertos-sockets.c | 260 if (inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) in lws_interface_to_sa() 264 if (inet_pton(AF_INET, ifname, &addr->sin_addr) == 1) in lws_interface_to_sa() 283 return 1; // inet_pton(af, src, dst); in lws_plat_inet_pton()
|