getifaddrs () has recently been integrated into source code for future releases of OpenSolaris and Solaris, but this does not help your code run current versions:
Until then, you will need to use SIOCGLIFCONFioctls, in which you will find many examples from open source, including the link that you posted.
alanc source
share