Possible Duplicate:
Solaris: Programmatic interface to ifconfig?
How do I get the list of all "/dev/net0 /dev/bge0, Network Interface device file", using C program.
Possible Duplicate:
Solaris: Programmatic interface to ifconfig?
How do I get the list of all "/dev/net0 /dev/bge0, Network Interface device file", using C program.
Do I understand you correctly, you need all presented network devices files in /dev? Then just run
ls /dev/net* /dev/bge*
and parse results.