Skip to content
Advertisement

Tag: network-interface

SIOCGIFCONF return only loopback interface

I want to get all network interfaces names present on the system. For system portability (Android included) I decided to write a method that performs this task using ioctl because I think (probably wrongly) that ioctl is one of the best for this task. So I wrote this code But the problem is, that it returns only the loopback interface.

Advertisement