Please don't mess up code that works on most systems as is. Using something easily testable for, like getifaddrs, might be ok, but the right way is probably to implement that function for weirdo systems. The keyword here is `portable'. /Johan