/** * Returns {@code true} if the MAC address is the multicast address. * * @return {@code true} if the MAC address is the multicast address. */ public boolean isMulticast() { if (this.isBroadcast()) { return false; } return (this.address[0] & 0x01) != 0; }
/** * @return True if the Ethernet frame is broadcast, false otherwise */ public boolean isBroadcast() { assert this.destinationMACAddress.length() == 6; return this.destinationMACAddress.isBroadcast(); }
(ethDst.mac().isBroadcast() || ethDst.mac().isMulticast());
if (!context.dstMac().isBroadcast() && !intf.mac().equals(MacAddress.NONE) && !intf.mac().equals(context.dstMac())) {