Class MacAddress
java.lang.Object
org.pcap4j.util.LinkLayerAddress
org.pcap4j.util.MacAddress
- All Implemented Interfaces:
Serializable
- Since:
- pcap4j 0.9.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MacAddressprivate static final longstatic final intFields inherited from class LinkLayerAddress
HEX_SEPARATOR_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MacAddressgetByAddress(byte[] address) static MacAddressstatic MacAddressgetOui()booleanbooleanMethods inherited from class LinkLayerAddress
equals, getAddress, hashCode, length, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ETHER_BROADCAST_ADDRESS
-
SIZE_IN_BYTES
public static final int SIZE_IN_BYTES- See Also:
-
-
Constructor Details
-
MacAddress
private MacAddress(byte[] address)
-
-
Method Details
-
getByAddress
- Parameters:
address- address- Returns:
- a new MacAddress object.
-
getByName
- Parameters:
name- name- Returns:
- a new MacAddress object.
-
getByName
- Parameters:
name- nameseparator- separator- Returns:
- a new MacAddress object.
-
getOui
- Returns:
- OUI
-
isUnicast
public boolean isUnicast()- Returns:
- true if the MAC address represented by this object is a unicast address; otherwise false.
-
isGloballyUnique
public boolean isGloballyUnique()- Returns:
- true if the MAC address represented by this object is a globally unique address; otherwise false.
-