Add support for 64-bit MAC addresses, fixes #5915