Migrate to better MAC lookup

This commit is contained in:
Mygod
2021-05-05 11:49:15 -04:00
parent 5d23c96244
commit 0adb857b2d
3 changed files with 21 additions and 24 deletions

View File

@@ -96,4 +96,6 @@ value class MacAddressCompat(val addr: Long) {
fun toPlatform() = MacAddress.fromBytes(toList().toByteArray())
override fun toString() = toList().joinToString(":") { "%02x".format(it) }
fun toOui() = toList().joinToString("") { "%02x".format(it) }.substring(0, 9)
}