Lines Matching refs:hp
199 struct hostent *hp; in php_gethostbyaddr()
207 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET); in php_gethostbyaddr()
209 if (!hp || hp->h_name == NULL || hp->h_name[0] == '\0') { in php_gethostbyaddr()
213 return zend_string_init(hp->h_name, strlen(hp->h_name), 0); in php_gethostbyaddr()
249 struct hostent *hp; in PHP_FUNCTION() local
264 hp = php_network_gethostbyname(hostname); in PHP_FUNCTION()
265 if (!hp) { in PHP_FUNCTION()
275 memcpy(&h_addr_entry, &hp->h_addr_list[i], sizeof(struct in_addr *)); in PHP_FUNCTION()
295 struct hostent *hp; in php_gethostbyname() local
301 hp = php_network_gethostbyname(name); in php_gethostbyname()
302 if (!hp) { in php_gethostbyname()
307 memcpy(&h_addr_0, &hp->h_addr_list[0], sizeof(struct in_addr *)); in php_gethostbyname()
369 HEADER *hp; in PHP_FUNCTION() local
435 hp = (HEADER *)&answer; in PHP_FUNCTION()
436 RETURN_BOOL(ntohs(hp->ancount) != 0); in PHP_FUNCTION()
824 HEADER *hp; in PHP_FUNCTION() local
988 hp = (HEADER *)&answer; in PHP_FUNCTION()
989 qd = ntohs(hp->qdcount); in PHP_FUNCTION()
990 an = ntohs(hp->ancount); in PHP_FUNCTION()
991 ns = ntohs(hp->nscount); in PHP_FUNCTION()
992 ar = ntohs(hp->arcount); in PHP_FUNCTION()
1057 HEADER *hp; in PHP_FUNCTION() local
1107 hp = (HEADER *)&answer; in PHP_FUNCTION()
1110 for (qdc = ntohs((unsigned short)hp->qdcount); qdc--; cp += i + QFIXEDSZ) { in PHP_FUNCTION()
1116 count = ntohs((unsigned short)hp->ancount); in PHP_FUNCTION()