Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/network/
H A Dinet.phpt2 inet_ntop() & inet_pton() tests
16 var_dump(inet_pton(""));
17 var_dump(inet_pton(-1));
18 var_dump(inet_pton("abra"));
27 var_dump(bin2hex($packed = inet_pton($val)));
H A Dinet_ipv6.phpt2 inet_ntop() & inet_pton() IPv6 tests
28 $packed = inet_pton($address);
H A Dip2long_variation2_x64.phpt5 /* from man inet_pton :
10 if(PHP_OS == 'Darwin') die("skip - inet_pton behaves differently on Darwin");
/php-src/ext/sockets/
H A Dsockaddr_conv.c25 if (inet_pton(AF_INET6, string, &tmp)) { in php_set_inet6_addr()
92 if (inet_pton(AF_INET, string, &tmp)) { in php_set_inet_addr()
/php-src/main/
H A Dnetwork.c235 if (!inet_pton(AF_INET, host, &in)) { in php_network_getaddresses()
540 if (inet_pton(AF_INET6, tmp, &in6->sin6_addr) > 0) {
548 if (inet_pton(AF_INET, tmp, &in4->sin_addr) > 0) {
849 if (inet_pton(AF_INET, bindto, &local_address.in4.sin_addr) == 1) {
858 if (inet_pton(AF_INET6, bindto, &local_address.in6.sin6_addr) == 1) {
H A Dfastcgi.c684 if (!inet_pton(AF_INET, host, &sa.sa_inet.sin_addr)) { in fcgi_listen()
784 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_listen()
788 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_listen()
844 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) { in fcgi_set_allowed_clients()
848 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_set_allowed_clients()
/php-src/win32/
H A Dsendmail.c831 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1) in MailConnect()
833 if (inet_pton(AF_INET, ent->h_name, &addr) == 1) in MailConnect()
/php-src/ext/standard/
H A Ddns.c181 if (inet_pton(AF_INET6, ip, &sa6.sin6_addr)) { in php_gethostbyaddr()
188 } else if (inet_pton(AF_INET, ip, &sa4.sin_addr)) { in php_gethostbyaddr()
H A Dbasic_functions.c563 PHP_FUNCTION(inet_pton) in PHP_FUNCTION() argument
585 ret = inet_pton(af, address, buffer); in PHP_FUNCTION()
606 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) { in PHP_FUNCTION()
H A Dbasic_functions.stub.php2242 function inet_pton(string $ip): string|false {}
H A Dbasic_functions_arginfo.h2525 ZEND_FUNCTION(inet_pton);
3158 ZEND_FE(inet_pton, arginfo_inet_pton)
/php-src/
H A DUPGRADING.INTERNALS41 inet_pton() from arpa/inet.h or ws2tcpip.h on Windows.
H A Dconfigure.ac641 AC_CHECK_FUNC([inet_pton],,[AC_MSG_ERROR([Required inet_pton not found.])])
/php-src/ext/openssl/
H A Dxp_ssl.c469 if (inet_pton(AF_INET6, subject_name, &ipv6)) { in php_openssl_matches_san_list()
/php-src/sapi/litespeed/
H A Dlsapilib.c2691 if (!inet_pton(AF_INET, p, &((struct sockaddr_in *)pAddr)->sin_addr)) in LSAPI_ParseSockAddr()

Completed in 156 milliseconds