Fix incorrect MAC address multicast check

This commit is contained in:
Shadowfacts 2019-10-26 23:13:14 -04:00
parent d3c1cbdb5b
commit 0908ccbb3a
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public final class MACAddress {
public Type getType() {
if (this == BROADCAST) {
return Type.BROADCAST;
} else if (((address >> 46) & 1) == 1) {
} else if (((address >> 40) & 1) == 1) {
return Type.MULTICAST;
} else {
return Type.UNICAST;