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)
Previous text:
2004-09-11 11:40: Subject: gethostip
How portable is SIOCGIFCONF? Solaris 9 seems to consider it obsolete, and provides SIOCGLIFCONF as a replacement. And for W*ndows something else completely is probably needed.
Otherwise it seems ok, but it should of course return IPV6 addresses as well. Which makes the proposed API a bit awkward, since each interface may have two addresses, one V4 and one V6.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)