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
Real men use ioctl ;)
ioctl
Take a look at if(7P).