06 January, 2011

Get all network interfaces using SIOCGIFCONF

Use ioctl with SIOCGIFCONF can get the names of every network interface in your machine. It should be faster than parsing the output of "ifconfig" command.

No comments: