https://stackoverflow.com/a/17719579/2619129 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).
My ultimate goal is to list Mac-Addresses of all the NetworkInterfaces (which gets listed as result of ifconfig command) on OS X implemented in pure Java.