Home
last modified time | relevance | path

Searched refs:sin_addr (Results 1 – 12 of 12) sorted by relevance

/PHP-5.3/sapi/fpm/fpm/
H A Dfpm_sockets.h48 #define IPQUAD(sin_addr) \ argument
49 (unsigned int) ((unsigned char *) &(sin_addr)->s_addr)[0], \
50 (unsigned int) ((unsigned char *) &(sin_addr)->s_addr)[1], \
51 (unsigned int) ((unsigned char *) &(sin_addr)->s_addr)[2], \
52 (unsigned int) ((unsigned char *) &(sin_addr)->s_addr)[3]
H A Dfpm_sockets.c108 sprintf(key, "%u.%u.%u.%u:%u", IPQUAD(&sa_in->sin_addr), (unsigned int) ntohs(sa_in->sin_port)); in fpm_sockets_hash_op()
280 sa_in.sin_addr.s_addr = inet_addr(addr); in fpm_socket_af_inet_listening_socket()
281 if (sa_in.sin_addr.s_addr == INADDR_NONE) { /* do resolve */ in fpm_socket_af_inet_listening_socket()
285 zlog(ZLOG_NOTICE, "address '%s' resolved as %u.%u.%u.%u", addr, IPQUAD(&sa_in.sin_addr)); in fpm_socket_af_inet_listening_socket()
288 sa_in.sin_addr.s_addr = htonl(INADDR_ANY); in fpm_socket_af_inet_listening_socket()
H A Dfastcgi.c816 if (allowed_clients[n] == sa.sa_inet.sin_addr.s_addr) {
823 …ERROR, "Connection disallowed: IP address '%s' has been dropped.", inet_ntoa(sa.sa_inet.sin_addr));
1101 return inet_ntoa(client_sa.sa_inet.sin_addr);
/PHP-5.3/win32/
H A Dsockets.c50 address.sin_addr.s_addr = INADDR_ANY; in socketpair()
71 address.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in socketpair()
H A Dinet.c33 memcpy (dst, &sin->sin_addr, sizeof (struct in_addr)); in inet_pton()
59 memcpy (&sin->sin_addr, src, sizeof (struct in_addr)); in inet_ntop()
H A Dsendmail.c832 sock_in.sin_addr.S_un.S_addr = GetAddr(MailHost); in MailConnect()
/PHP-5.3/main/
H A Dnetwork.c263 ((struct sockaddr_in *)*sap)->sin_addr = in; in php_network_getaddresses()
541 if (inet_aton(tmp, &in4->sin_addr) > 0) {
611 buf = inet_ntoa(((struct sockaddr_in*)sa)->sin_addr);
843 if (!inet_aton(bindto, &in4->sin_addr)) {
947 sin->sin_addr.s_addr = htonl(INADDR_ANY);
/PHP-5.3/sapi/cgi/
H A Dfastcgi.c384 sa.sa_inet.sin_addr.s_addr = htonl(INADDR_ANY); in fcgi_listen()
386 sa.sa_inet.sin_addr.s_addr = inet_addr(host); in fcgi_listen()
387 if (sa.sa_inet.sin_addr.s_addr == INADDR_NONE) { in fcgi_listen()
398 sa.sa_inet.sin_addr.s_addr = ((struct in_addr*)hep->h_addr_list[0])->s_addr; in fcgi_listen()
978 if (allowed_clients[n] == sa.sa_inet.sin_addr.s_addr) {
985 …tderr, "Connection from disallowed IP address '%s' is dropped.\n", inet_ntoa(sa.sa_inet.sin_addr));
/PHP-5.3/ext/sockets/
H A Dsockets.c364 memcpy((char *) &la.sin_addr, hp->h_addr, hp->h_length);
586 sin->sin_addr.s_addr = tmp.s_addr;
601 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length);
1128 addr_string = inet_ntoa(sin->sin_addr);
1206 addr_string = inet_ntoa(sin->sin_addr);
1605 address = inet_ntoa(sin.sin_addr);
/PHP-5.3/sapi/litespeed/
H A Dlsapilib.c1494 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = htonl(INADDR_ANY); in LSAPI_ParseSockAddr()
1497 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = htonl( INADDR_LOOPBACK ); in LSAPI_ParseSockAddr()
1499 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = inet_addr( p ); in LSAPI_ParseSockAddr()
1500 if ( ((struct sockaddr_in *)pAddr)->sin_addr.s_addr == INADDR_BROADCAST) { in LSAPI_ParseSockAddr()
/PHP-5.3/ext/ftp/
H A Dftp.c772 sin->sin_addr = ipbox.ia[0]; in ftp_pasv()
1465 ipbox.ia[0] = ((struct sockaddr_in*) sa)->sin_addr; in ftp_getdata()
/PHP-5.3/sapi/thttpd/
H A Dthttpd_patch956 + unsigned long n = ntohl(saP->sa_in.sin_addr.s_addr);

Completed in 43 milliseconds