[Techtalk] ip addreses on redhat

Kathryn Hogg kjh at flyballdogs.com
Mon Aug 4 17:20:31 EST 2003

Robert Wade said:
> The whole premise of GNU and usually open source is that one can use the
> work of others. Why not just use 'ifconfig -a' in your program?

You could just use the SIOCGIFCONF ioctl call to get a list of all the
network interfaces as an array of ifreq structs.


More information about the Techtalk mailing list