}
else if (
(Platform.isMac() || Platform.isFreeBSD() || Platform.isOpenBSD()) || Platform.iskFreeBSD()
&& sa_family == Inets.AF_LINK
) {
sockaddr_dl sdl = new sockaddr_dl(pcapAddr.addr.getPointer());
byte[] addr = sdl.getAddress();
if (addr.length == 6) {
linkLayerAddresses.add(MacAddress.getByAddress(addr));
}
else if (addr.length == 0) {
continue;