title: Linux C++ How to Programatically Get MAC address for all adapters on a LAN
body: <p>How may I use C or C++ <strong>PROGRAM</strong> (no command line) to get the MAC addresses (I'll take the IP addresses too if they are "free")  on my (small) local network.  It's an embedded Busybox Linux so I need a minimalist answer that hopefully doesn't require porting some library.  I don't have libnet or libpcap.  The arp cache seems to never contain anything but the MAC if the DHCP host.</p>