Lines Matching refs:hp

185 	struct hostent *hp;  in php_gethostbyaddr()  local
189 hp = gethostbyaddr((char *) &addr6, sizeof(addr6), AF_INET6); in php_gethostbyaddr()
191 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); in php_gethostbyaddr()
202 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); in php_gethostbyaddr()
205 if (!hp || hp->h_name == NULL || hp->h_name[0] == '\0') { in php_gethostbyaddr()
209 return estrdup(hp->h_name); in php_gethostbyaddr()
242 struct hostent *hp; in PHP_FUNCTION() local
256 hp = gethostbyname(hostname); in PHP_FUNCTION()
257 if (hp == NULL || hp->h_addr_list == NULL) { in PHP_FUNCTION()
263 for (i = 0 ; hp->h_addr_list[i] != 0 ; i++) { in PHP_FUNCTION()
264 in = *(struct in_addr *) hp->h_addr_list[i]; in PHP_FUNCTION()
273 struct hostent *hp; in php_gethostbyname() local
276 hp = gethostbyname(name); in php_gethostbyname()
278 if (!hp || !*(hp->h_addr_list)) { in php_gethostbyname()
282 memcpy(&in.s_addr, *(hp->h_addr_list), sizeof(in.s_addr)); in php_gethostbyname()
780 HEADER *hp; in PHP_FUNCTION() local
916 hp = (HEADER *)&answer; in PHP_FUNCTION()
917 qd = ntohs(hp->qdcount); in PHP_FUNCTION()
918 an = ntohs(hp->ancount); in PHP_FUNCTION()
919 ns = ntohs(hp->nscount); in PHP_FUNCTION()
920 ar = ntohs(hp->arcount); in PHP_FUNCTION()
986 HEADER *hp; in PHP_FUNCTION() local
1031 hp = (HEADER *)&ans; in PHP_FUNCTION()
1034 for (qdc = ntohs((unsigned short)hp->qdcount); qdc--; cp += i + QFIXEDSZ) { in PHP_FUNCTION()
1040 count = ntohs((unsigned short)hp->ancount); in PHP_FUNCTION()