Lines Matching refs:hp
188 struct hostent *hp; in php_gethostbyaddr() local
192 hp = gethostbyaddr((char *) &addr6, sizeof(addr6), AF_INET6); in php_gethostbyaddr()
194 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); in php_gethostbyaddr()
205 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); in php_gethostbyaddr()
208 if (!hp || hp->h_name == NULL || hp->h_name[0] == '\0') { in php_gethostbyaddr()
212 return zend_string_init(hp->h_name, strlen(hp->h_name), 0); in php_gethostbyaddr()
243 struct hostent *hp; in PHP_FUNCTION() local
257 hp = php_network_gethostbyname(hostname); in PHP_FUNCTION()
258 if (hp == NULL || hp->h_addr_list == NULL) { in PHP_FUNCTION()
264 for (i = 0 ; hp->h_addr_list[i] != 0 ; i++) { in PHP_FUNCTION()
265 in = *(struct in_addr *) hp->h_addr_list[i]; in PHP_FUNCTION()
274 struct hostent *hp; in php_gethostbyname() local
278 hp = php_network_gethostbyname(name); in php_gethostbyname()
280 if (!hp || !*(hp->h_addr_list)) { in php_gethostbyname()
284 memcpy(&in.s_addr, *(hp->h_addr_list), sizeof(in.s_addr)); in php_gethostbyname()
803 HEADER *hp; in PHP_FUNCTION() local
959 hp = (HEADER *)&answer; in PHP_FUNCTION()
960 qd = ntohs(hp->qdcount); in PHP_FUNCTION()
961 an = ntohs(hp->ancount); in PHP_FUNCTION()
962 ns = ntohs(hp->nscount); in PHP_FUNCTION()
963 ar = ntohs(hp->arcount); in PHP_FUNCTION()
1029 HEADER *hp; in PHP_FUNCTION() local
1074 hp = (HEADER *)&ans; in PHP_FUNCTION()
1077 for (qdc = ntohs((unsigned short)hp->qdcount); qdc--; cp += i + QFIXEDSZ) { in PHP_FUNCTION()
1083 count = ntohs((unsigned short)hp->ancount); in PHP_FUNCTION()