I am trying to use the net-tools ifconfig source code to obtain network interface info in my app. I only kept the parts pertaining to ethernet/wlan
net-tools
ifconfig