Charles Chan
Committed by Charles Chan

Add IPv4 multicast MAC address/mask

Change-Id: Iaed31c0d5bc40305767c4d5be8aeeca1b9f67e6d
......@@ -22,9 +22,26 @@ import java.util.Arrays;
*/
public class MacAddress {
/**
* Dummy MAC address.
*/
public static final MacAddress NONE = valueOf("a4:23:05:00:00:00");
/**
* All-zero MAC address.
*/
public static final MacAddress ZERO = valueOf("00:00:00:00:00:00");
/**
* Broadcast MAC address.
*/
public static final MacAddress BROADCAST = valueOf("ff:ff:ff:ff:ff:ff");
/**
* IPv4 multicast MAC address.
*/
public static final MacAddress IPV4_MULTICAST = valueOf("01:00:5e:00:00:00");
/**
* IPv4 multicast MAC mask.
*/
public static final MacAddress IPV4_MULTICAST_MASK = valueOf("ff:ff:ff:80:00:00");
private static final byte[] LL = new byte[]{
0x01, (byte) 0x80, (byte) 0xc2, 0x00, 0x00,
......