rem: if ((host = getipnodebyname(name, AF_INET6, 0, NULL)) != NULL) { if (host->h_length != sizeof(struct in6_addr))
add: if ( (err=getaddrinfo(name, NULL, &hints, &res)) != 0 ){ #ifdef DEBUG fprintf(stderr,"Name2IP: %s\n",gai_strerror(err)); #endif return (struct in6_addr *) NULL; } else { if (res->ai_family != AF_INET6 || res->ai_addrlen != sizeof(struct sockaddr_in6))
context: host_to_addr(const char *name, unsigned int *naddr){#if 0	/* TODO: getipnodebyname() missing */	struct hostent *host;	struct in6_addr *addr;	unsigned int i;	*naddr = 0;	if ((host = getipnodebyname(name, AF_INET6, 0, NULL)) != NULL) {		if (host->h_length != sizeof(struct in6_addr))			return (struct in6_addr *) NULL;		while (host->h_addr_list[*naddr] != (char *) NULL)			(*naddr)++;		addr = fw_calloc(*naddr, sizeof(struct in6_addr));		for (i = 0; i < *naddr; i++)			in6addrcpy(&(addr[i]),				  (struct in6_addr *) host->h_addr_list[i]);		freehostent(host);		return addr;	}#endif	return (struct in6_addr *) NULL;}