Home
last modified time | relevance | path

Searched refs:inet_pton (Results 1 – 25 of 147) sorted by relevance

123456

/third_party/musl/libc-test/src/functionalext/supplement/network/
Dinet_ntop.c30 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/curl/tests/server/
DMakefile.inc78 ../../lib/inet_pton.c
84 ../../lib/inet_pton.c
90 ../../lib/inet_pton.c
97 ../../lib/inet_pton.c
/third_party/musl/libc-test/src/functional/
Dinet_pton.c35 r=inet_pton(AF_INET6,src,binaddr); \
46 if (inet_pton(AF_INET6,txtaddr,binaddr)!=1) \
68 r=inet_pton(AF_INET,src,&a); \
94 if (inet_pton(12345, "", 0) != -1 || errno != EAFNOSUPPORT) in main()
/third_party/ltp/testcases/network/lib6/
Din6_01.c110 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def()
130 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped()
165 rv = inet_pton(AF_INET, sstab[i].addr, &psin->sin_addr); in test_sockaddr_storage()
168 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/
Dgetnameinfo.c38 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0100()
85 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0300()
104 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0400()
122 inet_pton(AF_INET, "127.0.0.1", &sa.sin_addr.s_addr); in getnameinfo_0500()
/third_party/pulseaudio/src/pulsecore/
Dparseaddr.c138 if (inet_pton(AF_INET6, a, buf) >= 1) in pa_is_ip_address()
141 if (inet_pton(AF_INET, a, buf) >= 1) in pa_is_ip_address()
152 if (inet_pton(AF_INET6, a, buf) >= 1) in pa_is_ip6_address()
Darpa-inet.h17 int inet_pton(int af, const char *src, void *dst);
Dipacl.c89 if (inet_pton(AF_INET, a, &e.address_ipv4) > 0) { in pa_ip_acl_new()
104 } else if (inet_pton(AF_INET6, a, &e.address_ipv6) > 0) { in pa_ip_acl_new()
/third_party/musl/libc-test/src/regression/
Dinet_pton-empty-last-field.c25 if (inet_pton(AF_INET6, addr, buf)!=1 || memcmp(buf, want, 16)!=0) { in main()
33 if (inet_pton(AF_INET6, addr, buf)!=0) { in main()
Dinet_ntop-v4mapped.c12 if (inet_pton(AF_INET6, expect, addr) == 1) { in main()
/third_party/libnl/tests/
Dtest-create-ip6tnl.c39 inet_pton(AF_INET6, "2607:f0d0:1002:51::4", &addr); in main()
42 inet_pton(AF_INET6, "2607:f0d0:1002:52::5", &addr); in main()
Dtest-create-sit.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipgre.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipip.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipvti.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipgretap.c39 inet_pton(AF_INET, "10.211.55.10", &addr.s_addr); in main()
42 inet_pton(AF_INET, "10.133.6.33", &addr.s_addr); in main()
/third_party/ltp/lib/
Dtst_net.c67 ret = inet_pton(AF_INET, prefix, &in); in tst_ipv4_mask_to_int()
129 if (inet_pton(AF_INET, ip_str, ip) <= 0) in tst_get_in_addr()
135 if (inet_pton(AF_INET6, ip_str, ip6) <= 0) in tst_get_in6_addr()
/third_party/musl/src/network/
Dinet_pton.c15 int inet_pton(int af, const char *restrict s, void *restrict a0) in inet_pton() function
69 if (need_v4 && inet_pton(AF_INET, (void *)s, a-4) <= 0) return 0; in inet_pton()
/third_party/curl/lib/
Dinet_pton.h36 #define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-send.c306 if (inet_pton(AF_INET, src_addr, &src_sa4.sin_addr) > 0) { in pa__init()
312 } else if (inet_pton(AF_INET6, src_addr, &src_sa6.sin6_addr) > 0) { in pa__init()
328 if (inet_pton(AF_INET, dst_addr, &dst_sa4.sin_addr) > 0) { in pa__init()
335 } else if (inet_pton(AF_INET6, dst_addr, &dst_sa6.sin6_addr) > 0) { in pa__init()
/third_party/grpc/src/core/lib/iomgr/
Dsocket_utils_windows.cc39 return inet_pton(af, src, dst); in grpc_inet_pton()
Dsocket_utils_uv.cc41 return inet_pton(af, src, dst); in grpc_inet_pton()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/arpa/
Dinet.h19 int inet_pton (int, const char *__restrict, void *__restrict);
/third_party/musl/porting/liteos_a_newlib/kernel/include/arpa/
Dinet.h19 int inet_pton (int, const char *__restrict, void *__restrict);
/third_party/musl/porting/liteos_a/kernel/include/arpa/
Dinet.h19 int inet_pton (int, const char *__restrict, void *__restrict);

123456