Well, x->ip could always be one address and x->ipv6 could always be an array.
/ Martin Nilsson (DivX Networks)
Previous text:
2004-09-11 23:31: Subject: gethostip
Well, the downside of that approach is that you need to always use x->ipv4 || x->ipv6 to be sure to get a valid address. Besides, Linux can assign several IPV6 addresses to the same interface (while Solaris instead creates a pseudo-interface for each additional address). Normally you have three V6 addresses for each interface, one link-local, one site-local and one global.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)