I\'m looking for a programmatic interface to the Solaris ifconfig(1M) command.
Apparently Linux has the getifaddrs(3) command, but as far as I can tell this has not
getifaddrs() was recently integrated into the source code for future OpenSolaris & Solaris releases, but that doesn't help your code run on current releases:
Until then you'll need to use the SIOCGLIFCONF
ioctls, which you should find lots of examples of in open source code, including the link you posted.