rem: if ((host = getipnodebyaddr((char *) addr, sizeof(struct in6_addr), AF_INET6, NULL)) != NULL) return (char *) host->h_name;
add: memset(&saddr, 0, sizeof(struct sockaddr_in6)); in6addrcpy(&(saddr.sin6_addr),(struct in6_addr *)addr);  if ( (err=getnameinfo((struct sockaddr *)&saddr, sizeof(struct sockaddr_in6), hostname, sizeof(hostname)-1, NULL, 0, 0)) != 0 ){ #ifdef DEBUG fprintf(stderr,"IP2Name: %s\n",gai_strerror(err));
context: addr_to_host(const struct in6_addr *addr){#if 0	/* TODO: getipnodebyaddr missing */	struct hostent *host;	if ((host = getipnodebyaddr((char *) addr,				  sizeof(struct in6_addr), AF_INET6, NULL)) != NULL)		return (char *) host->h_name;	/*TODO: freehostent()*/#endif	return (char *) NULL;}