Fix incorrect MAC address multicast check
This commit is contained in:
parent
d3c1cbdb5b
commit
0908ccbb3a
|
@ -48,7 +48,7 @@ public final class MACAddress {
|
||||||
public Type getType() {
|
public Type getType() {
|
||||||
if (this == BROADCAST) {
|
if (this == BROADCAST) {
|
||||||
return Type.BROADCAST;
|
return Type.BROADCAST;
|
||||||
} else if (((address >> 46) & 1) == 1) {
|
} else if (((address >> 40) & 1) == 1) {
|
||||||
return Type.MULTICAST;
|
return Type.MULTICAST;
|
||||||
} else {
|
} else {
|
||||||
return Type.UNICAST;
|
return Type.UNICAST;
|
||||||
|
|
Loading…
Reference in New Issue