he                358 nsswitch/winbind_nss_solaris.c 	struct hostent *he = (struct hostent *)argp->buf.result;
he                393 nsswitch/winbind_nss_solaris.c 	he->h_addrtype = af;
he                394 nsswitch/winbind_nss_solaris.c 	if( he->h_addrtype == AF_INET) {
he                395 nsswitch/winbind_nss_solaris.c 		he->h_length =  sizeof(struct in_addr);
he                399 nsswitch/winbind_nss_solaris.c 		he->h_addr_list = (char **)ROUND_DOWN(addrp, sizeof (char*));
he                400 nsswitch/winbind_nss_solaris.c 		he->h_addr_list -= addrcount+1;
he                404 nsswitch/winbind_nss_solaris.c 		he->h_length = sizeof(struct in6_addr);
he                408 nsswitch/winbind_nss_solaris.c 		he->h_addr_list = (char **)ROUND_DOWN(addrp6, sizeof (char*));
he                409 nsswitch/winbind_nss_solaris.c 		he->h_addr_list -= addrcount+1;
he                414 nsswitch/winbind_nss_solaris.c 	if((char *)he->h_addr_list < buffer ) {
he                425 nsswitch/winbind_nss_solaris.c 		if(he->h_addrtype == AF_INET) {
he                426 nsswitch/winbind_nss_solaris.c 		  he->h_addr_list[i] = (char *)&addrp[i];
he                434 nsswitch/winbind_nss_solaris.c 		  he->h_addr_list[i] = (char *)&addrp6[i];
he                453 nsswitch/winbind_nss_solaris.c 	he->h_addr_list[i] = (char *)NULL;
he                456 nsswitch/winbind_nss_solaris.c 	if(len > he->h_addr_list - (char**)argp->buf.buffer) {
he                463 nsswitch/winbind_nss_solaris.c 	he->h_aliases = _nss_netdb_aliases(data, len, buffer,
he                464 nsswitch/winbind_nss_solaris.c 				((char*) he->h_addr_list) - buffer);
he                465 nsswitch/winbind_nss_solaris.c 	if(he->h_aliases == NULL) {
he                469 nsswitch/winbind_nss_solaris.c 	    he->h_name = he->h_aliases[0];
he                470 nsswitch/winbind_nss_solaris.c 	    he->h_aliases++;
he                474 nsswitch/winbind_nss_solaris.c 	argp->returnval = (void*)he;
he                 43 nsswitch/wins.c NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he,
he                 45 nsswitch/wins.c NSS_STATUS _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he,
he                328 nsswitch/wins.c _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he,
he                341 nsswitch/wins.c 	memset(he, '\0', sizeof(*he));
he                357 nsswitch/wins.c 	if ((he->h_name = get_static(&buffer, &buflen, namelen)) == NULL) {
he                363 nsswitch/wins.c 	memcpy(he->h_name, name, namelen);
he                376 nsswitch/wins.c 	if ((he->h_addr_list = (char **)get_static(
he                384 nsswitch/wins.c 		if ((he->h_addr_list[i] = get_static(&buffer, &buflen,
he                390 nsswitch/wins.c 		memcpy(he->h_addr_list[i], &ip_list[i], INADDRSZ);
he                393 nsswitch/wins.c 	he->h_addr_list[count] = NULL;
he                399 nsswitch/wins.c 	he->h_addrtype = AF_INET;
he                400 nsswitch/wins.c 	he->h_length = INADDRSZ;
he                412 nsswitch/wins.c 	if ((he->h_aliases = (char **)get_static(
he                418 nsswitch/wins.c 	he->h_aliases[0] = NULL;
he                432 nsswitch/wins.c _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he,
he                442 nsswitch/wins.c 				name, he, buffer, buflen, h_errnop);
he                229 source4/heimdal/lib/roken/getaddrinfo.c 	     struct hostent *he, int *flags)
he                239 source4/heimdal/lib/roken/getaddrinfo.c 	tmp_canon = hostent_find_fqdn (he);
he                243 source4/heimdal/lib/roken/getaddrinfo.c 	    he2 = getipnodebyaddr (he->h_addr_list[0], he->h_length,
he                244 source4/heimdal/lib/roken/getaddrinfo.c 				   he->h_addrtype, &error);
he                260 source4/heimdal/lib/roken/getaddrinfo.c     for (h = he->h_addr_list; *h != NULL; ++h) {
he                333 source4/heimdal/lib/roken/getaddrinfo.c 	struct hostent *he;
he                335 source4/heimdal/lib/roken/getaddrinfo.c 	he = getipnodebyname (nodename, PF_INET6, 0, &error);
he                337 source4/heimdal/lib/roken/getaddrinfo.c 	if (he != NULL) {
he                339 source4/heimdal/lib/roken/getaddrinfo.c 			       &current, const_v6, he, &flags);
he                340 source4/heimdal/lib/roken/getaddrinfo.c 	    freehostent (he);
he                345 source4/heimdal/lib/roken/getaddrinfo.c 	struct hostent *he;
he                347 source4/heimdal/lib/roken/getaddrinfo.c 	he = getipnodebyname (nodename, PF_INET, 0, &error);
he                349 source4/heimdal/lib/roken/getaddrinfo.c 	if (he != NULL) {
he                351 source4/heimdal/lib/roken/getaddrinfo.c 			       &current, const_v4, he, &flags);
he                352 source4/heimdal/lib/roken/getaddrinfo.c 	    freehostent (he);
he                 55 source4/heimdal/lib/roken/getnameinfo.c 	    struct hostent *he = gethostbyaddr (addr,
he                 58 source4/heimdal/lib/roken/getnameinfo.c 	    if (he != NULL) {
he                 59 source4/heimdal/lib/roken/getnameinfo.c 		strlcpy (host, hostent_find_fqdn(he), hostlen);
he                 46 source4/heimdal/lib/roken/hostent_find_fqdn.c hostent_find_fqdn (const struct hostent *he)
he                 48 source4/heimdal/lib/roken/hostent_find_fqdn.c     const char *ret = he->h_name;
he                 52 source4/heimdal/lib/roken/hostent_find_fqdn.c 	for (h = (const char **)he->h_aliases; *h != NULL; ++h) {
he                 53 source4/heimdal/lib/roken/roken_gethostby.c 	struct hostent *he = gethostbyname(address);
he                 54 source4/heimdal/lib/roken/roken_gethostby.c 	if(he) {
he                 55 source4/heimdal/lib/roken/roken_gethostby.c 	    unsigned char *p = (unsigned char*)he->h_addr;
he                187 source4/heimdal/lib/roken/roken_gethostby.c 	static struct hostent he;
he                192 source4/heimdal/lib/roken/roken_gethostby.c 	he.h_name = p;
he                193 source4/heimdal/lib/roken/roken_gethostby.c 	he.h_aliases = NULL;
he                194 source4/heimdal/lib/roken/roken_gethostby.c 	he.h_addrtype = AF_INET;
he                195 source4/heimdal/lib/roken/roken_gethostby.c 	he.h_length = 4;
he                208 source4/heimdal/lib/roken/roken_gethostby.c 	he.h_addr_list = addr_list;
he                209 source4/heimdal/lib/roken/roken_gethostby.c 	return &he;
he                216 source4/heimdal/lib/roken/roken_gethostby.c     struct hostent *he;
he                217 source4/heimdal/lib/roken/roken_gethostby.c     he = gethostbyname(hostname);
he                218 source4/heimdal/lib/roken/roken_gethostby.c     if(he)
he                219 source4/heimdal/lib/roken/roken_gethostby.c 	return he;
he                228 source4/heimdal/lib/roken/roken_gethostby.c     struct hostent *he;
he                229 source4/heimdal/lib/roken/roken_gethostby.c     he = gethostbyaddr(addr, len, type);
he                230 source4/heimdal/lib/roken/roken_gethostby.c     if(he)
he                231 source4/heimdal/lib/roken/roken_gethostby.c 	return he;
he                255 source4/heimdal/lib/roken/roken_gethostby.c     struct hostent *he;
he                260 source4/heimdal/lib/roken/roken_gethostby.c     he = gethostbyname(query);
he                261 source4/heimdal/lib/roken/roken_gethostby.c     strncpy(host, he->h_name, sizeof(host));
he                263 source4/heimdal/lib/roken/roken_gethostby.c     he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
he                264 source4/heimdal/lib/roken/roken_gethostby.c     printf("%s\n", he->h_name);
he                265 source4/heimdal/lib/roken/roken_gethostby.c     for(i = 0; he->h_addr_list[i]; i++) {
he                267 source4/heimdal/lib/roken/roken_gethostby.c 	unsigned char *p = (unsigned char*)he->h_addr_list[i];
he                400 source4/lib/socket/socket_ip.c 	struct hostent *he;
he                408 source4/lib/socket/socket_ip.c 	he = gethostbyaddr((char *)&peer_addr.sin_addr, sizeof(peer_addr.sin_addr), AF_INET);
he                409 source4/lib/socket/socket_ip.c 	if (he == NULL) {
he                413 source4/lib/socket/socket_ip.c 	return talloc_strdup(mem_ctx, he->h_name);
he                864 source4/lib/socket/socket_ip.c 	struct hostent *he;
he                872 source4/lib/socket/socket_ip.c 	he = gethostbyaddr((char *)&peer_addr.sin6_addr, sizeof(peer_addr.sin6_addr), AF_INET6);
he                873 source4/lib/socket/socket_ip.c 	if (he == NULL) {
he                877 source4/lib/socket/socket_ip.c 	return talloc_strdup(mem_ctx, he->h_name);