title: java.net.NetworkInterface.getNetworkInterfaces() not listing all interfaces for OS X
body: <p><a href="https://stackoverflow.com/a/17719579/2619129">https://stackoverflow.com/a/17719579/2619129</a> provides a solution for Linux. I am looking for a similar solution for OS X, but not sure which files to read to get the list of Interfaces (file /proc/net/dev in linux) and then their HardwareAddresses (file /sys/class/net/devicename/address in linux).</p>
  
  <p>My ultimate goal is to list Mac-Addresses of all the NetworkInterfaces (which gets listed as result of <em>ifconfig</em> command) on OS X implemented in pure Java.</p>