Searched refs:AF_INET (Results 1 - 19 of 19) sorted by relevance

/PHP_TRUNK/win32/
H A Dsockets.c37 if(domain != AF_INET) {
51 address.sin_family = AF_INET;
H A Dsendmail.c798 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1)
800 if (inet_pton(AF_INET, ent->h_name, &addr) == 1)
832 sock_in.sin_family = AF_INET;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfastcgi.c270 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) {
271 allowed_clients[n].sa.sa_family = AF_INET;
770 if (client_sa.sa.sa_family == AF_INET) {
772 if (allowed_clients[i].sa.sa_family == AF_INET
785 if (allowed_clients[i].sa.sa_family == AF_INET
1114 if (client_sa.sa.sa_family == AF_INET) {
1121 return inet_ntop(AF_INET, ((char *)&client_sa.sa_inet6.sin6_addr)+12, str, INET6_ADDRSTRLEN);
H A Dfpm_sockets.c80 if (sa->sa_family == AF_INET) {
90 if (sa->sa_family == AF_INET) {
/PHP_TRUNK/sapi/litespeed/
H A Dlsapilib.c1302 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )
2231 case AF_INET:
2312 pAddr->sa_family = AF_INET;
2359 if ( pAddr->sa_family == AF_INET )
2471 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )
/PHP_TRUNK/ext/ftp/
H A Dftp.c780 sin->sin_family = AF_INET;
/PHP_TRUNK/ext/snmp/
H A Dsnmp.c1200 } else if ((*res)->sa_family == AF_INET) {
1207 if ((*res)->sa_family != AF_INET) {
/PHP_TRUNK/ext/sockets/
H A Dconversions.c551 do_from_zval_err(ctx, "could not resolve address '%s' to get an AF_INET "
566 if (inet_ntop(AF_INET, addr, Z_STRVAL_P(zv), size) == NULL) {
719 case AF_INET:
721 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) {
730 (*sockaddr_ptr)->sa_family = AF_INET;
778 "AF_INET, AF_INET6 and AF_UNIX");
794 case AF_INET:
H A Dmulticast.c471 if (sock->type == AF_INET) {
536 if (sock->type == AF_INET) {
709 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
808 if ((((struct sockaddr*)&cur_req->ifr_addr)->sa_family == AF_INET) &&
838 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
H A Dsockaddr_conv.c84 /* Sets addr by hostname, or by ip in string form (AF_INET) */
102 if (host_entry->h_addrtype != AF_INET) {
103 php_error_docref(NULL, E_WARNING, "Host lookup failed: Non AF_INET domain returned on AF_INET socket");
113 /* Sets addr by hostname or by ip in string form (AF_INET or AF_INET6,
117 if (php_sock->type == AF_INET) {
121 ss->ss_family = AF_INET;
H A Dsockets.c91 #define PF_INET AF_INET
624 REGISTER_LONG_CONSTANT("AF_INET", AF_INET, CONST_CS | CONST_PERSISTENT);
1224 case AF_INET:
1302 case AF_INET:
1351 && arg1 != AF_INET) {
1352 php_error_docref(NULL, E_WARNING, "invalid socket domain [%pd] specified for argument 1, assuming AF_INET", arg1);
1353 arg1 = AF_INET;
1419 case AF_INET: {
1423 php_error_docref(NULL, E_WARNING, "Socket of type AF_INET require
[all...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c3842 int af = AF_INET;
3874 int ret, af = AF_INET;
3902 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16);
3924 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3966 if (inet_ntop(AF_INET, &myaddr, str, sizeof(str))) {
H A Ddns.c62 #define AF_INET 2 /* internetwork: UDP, TCP, etc. */ macro
190 } else if (inet_pton(AF_INET, ip, &addr)) {
191 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
202 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
H A Dfile.c245 #elif defined(AF_INET)
246 REGISTER_LONG_CONSTANT("STREAM_PF_INET", AF_INET, CONST_CS|CONST_PERSISTENT);
/PHP_TRUNK/main/
H A Dnetwork.c189 hints.ai_family = AF_INET; /* default to regular inet (see below) */
210 hints.ai_family = ipv6_borked ? AF_INET : AF_UNSPEC;
265 (*sap)->sa_family = AF_INET;
453 case AF_INET:
554 in4->sin_family = AF_INET;
581 case AF_INET:
620 case AF_INET:
825 case AF_INET:
843 if (sa->sa_family == AF_INET) {
960 case AF_INET
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c608 sa.sa_inet.sin_family = AF_INET;
620 if (!hep || hep->h_addrtype != AF_INET || !hep->h_addr_list[0]) {
1188 if (((struct sockaddr *)&sa)->sa_family == AF_INET) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1264 case AF_INET:
1313 case AF_INET:
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c864 inet_ntop(AF_INET, &(((struct sockaddr_in *)&address)->sin_addr), buffer, sizeof(buffer));
H A Dphpdbg_io.c235 rc = inet_pton(AF_INET, addr, &serveraddr);
237 hints.ai_family = AF_INET;

Completed in 49 milliseconds