I need to collect all the interface names, even the ones that aren\'t up at the moment. Like ifconfig -a.
ifconfig -a
getifaddrs() is iterating through
getifaddrs()
I thing this show you all interface, at least for me
ip link show
ls -1 /sys/class/net
only show interface name
lo p4p1