Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 25 of 38) sorted by relevance

12

/php-src/ext/sockets/tests/
H A Dipv6loop.phpt13 $server = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
15 die('Unable to create AF_INET6 socket [server]');
32 $client = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
34 die('Unable to create AF_INET6 socket [client]');
H A Dsocket_getpeername_ipv6loop.phpt19 $server = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
21 die('Unable to create AF_INET6 socket [server]');
41 $client = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
43 die('Unable to create AF_INET6 socket [client]');
H A Dsocket_recvmsg.phpt24 $sends1 = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
31 $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
44 "name" => ["family" => AF_INET6, "addr" => "::1"],
H A Dsocket_sendrecvmsg_multi_msg-unix.phpt27 $sends1 = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
34 $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
55 "name" => ["family" => AF_INET6, "addr" => "::1"],
H A Dsocket_sendrecvmsg_multi_msg.phpt22 $sends1 = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
29 $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
53 "name" => ["family" => AF_INET6, "addr" => "::1"],
H A Dipv6_skipif.inc2 if (getenv("CI_NO_IPV6") || !defined("AF_INET6")) {
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt15 $socket = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);
17 die('Unable to create AF_INET6 socket');
H A Dsocket_sentto_recvfrom_ipv6_udp-win32.phpt15 $socket = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);
17 die('Unable to create AF_INET6 socket');
H A Dbug51958.phpt16 $listenfd = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
H A Dmcast_ipv6_send.phpt15 $s = @socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("skip Cannot create socket");
22 $domain = AF_INET6;
H A Dsocket_create_pair-wrongparams-win32.phpt30 socket_create_pair(): Argument #1 ($domain) must be one of AF_UNIX, AF_INET6, or AF_INET
H A Dsocket_create_pair-wrongparams.phpt32 socket_create_pair(): Argument #1 ($domain) must be one of AF_UNIX, AF_INET6, or AF_INET
H A Dsocket_set_option_in6_pktinfo.phpt24 $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err");
H A Dmcast_ipv6_recv_limited.phpt13 $s = @socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);
50 $domain = AF_INET6;
H A Dmcast_ipv6_recv.phpt13 $s = @socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);
53 $domain = AF_INET6;
/php-src/ext/sockets/
H A Dsockaddr_conv.c25 if (inet_pton(AF_INET6, string, &tmp)) { in php_set_inet6_addr()
31 hints.ai_family = AF_INET6; in php_set_inet6_addr()
129 else if (php_sock->type == AF_INET6) { in php_set_inet46_addr()
133 ss->ss_family = AF_INET6; in php_set_inet46_addr()
H A Dsockets.c986 case AF_INET6:
1057 case AF_INET6:
1110 && domain != AF_INET6
1173 case AF_INET6: {
1315 case AF_INET6:
1509 case AF_INET6:
1606 case AF_INET6:
2140 && domain != AF_INET6
2592 case AF_INET6:
2655 case AF_INET6:
[all …]
H A Dconversions.c629 if (inet_ntop(AF_INET6, addr, Z_STRVAL_P(zv), size) == NULL) { in to_zval_read_sin6_addr()
743 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) { in from_zval_write_sockaddr_aux()
757 case AF_INET6: in from_zval_write_sockaddr_aux()
758 if (ctx->sock->type != AF_INET6) { in from_zval_write_sockaddr_aux()
767 (*sockaddr_ptr)->sa_family = AF_INET6; in from_zval_write_sockaddr_aux()
821 case AF_INET6: in to_zval_read_sockaddr_aux()
/php-src/ext/standard/
H A Dnet.c56 #ifdef AF_INET6 in php_inet_ntop()
57 case AF_INET6: { in php_inet_ntop()
59 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop()
80 #ifdef AF_INET6 in php_inet_ntop()
81 case AF_INET6: in php_inet_ntop()
237 case AF_INET6: { in PHP_FUNCTION()
242 sin6_mask.sin6_family = AF_INET6; in PHP_FUNCTION()
H A Dfile_arginfo.h67 #if defined(HAVE_IPV6) && (!defined(PF_INET6) && defined(AF_INET6)) in register_file_symbols()
68 REGISTER_LONG_CONSTANT("STREAM_PF_INET6", AF_INET6, CONST_PERSISTENT); in register_file_symbols()
/php-src/ext/standard/tests/network/
H A Dtcp6loop.phpt7 …Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/s…
26 die('Unable to create AF_INET6 socket [server]');
32 die('Unable to create AF_INET6 socket [client]');
H A Dudp6loop.phpt9 * (such as AF_INET6 exported by ext/sockets), however, since we
32 die('Unable to create AF_INET6 socket [server]');
38 die('Unable to create AF_INET6 socket [client]');
/php-src/main/
H A Dnetwork.c435 case AF_INET6:
549 if (inet_pton(AF_INET6, tmp, &in6->sin6_addr) > 0) {
551 in6->sin6_family = AF_INET6;
579 case AF_INET6:
634 case AF_INET6:
815 case AF_INET6:
866 if (inet_pton(AF_INET6, bindto, &local_address.in6.sin6_addr) == 1) {
964 case AF_INET6: {
966 sin6->sin6_family = AF_INET6;
992 case AF_INET6:
H A Dfastcgi.c788 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_listen()
789 allowed_clients[n].sa.sa_family = AF_INET6; in fcgi_listen()
848 } else if (inet_pton(AF_INET6, cur, &allowed_clients[n].sa_inet6.sin6_addr)>0) { in fcgi_set_allowed_clients()
849 allowed_clients[n].sa.sa_family = AF_INET6; in fcgi_set_allowed_clients()
1331 if (client_sa.sa.sa_family == AF_INET6) { in fcgi_is_allowed()
1333 if (allowed_clients[i].sa.sa_family == AF_INET6 in fcgi_is_allowed()
1754 if (client_sa.sa.sa_family == AF_INET6
1760 if (client_sa.sa.sa_family == AF_INET6) {
/php-src/ext/openssl/tests/
H A Dsan_ipv6_peer_matching.phpt8 if (getenv("CI_NO_IPV6") || !defined("AF_INET6")) {

Completed in 49 milliseconds

12