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!)
Previous text:
2004-09-11 13:29: Subject: gethostip
returning mapping(string:mapping(string:mixed)) is probaby better. Then every interface could have ipv4, ipv6, mac and whatever else is interesting. I'll wait and see if someone with more configure-skillz implements this first before I check anything in...
/ Martin Nilsson (DivX Networks)