Solaris: Programmatic interface to ifconfig?

Posted by David Citron on Stack Overflow See other posts from Stack Overflow or by David Citron
Published on 2010-04-16T19:13:59Z Indexed on 2010/04/16 21:13 UTC
Read the original article Hit count: 426

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 been ported to Solaris.

Short of attempting to use the code at the link above, is there any way to determine ifconfig(1M)-type data (network interface presence, state, etc.) without forking the system command and parsing the output?

© Stack Overflow or respective owner

Related posts about solaris

Related posts about ifconfig