A 48‐bit ethernet MAC address.
Synopsis
Declared in <folly/MacAddress.h>
class MacAddress;
Member Functions
Name |
Description |
|
Constructors |
Get a pointer to the MAC address' binary value. |
|
Return true if this is the broadcast MAC address. |
|
Return true if this MAC address is locally administered. |
|
Return true if this is a multicast MAC address. |
|
Return true if this is a unicast MAC address. |
|
Update the current MacAddress object from a human‐readable string. |
|
Update the current MacAddress object from a 6‐byte binary representation, throwing on failure. |
|
Update the current MacAddress object from a human‐readable string, throwing on failure. |
|
Return a human‐readable representation of the MAC address. |
|
Update the current MacAddress object from a 6‐byte binary representation. |
|
Update the current MacAddress object from a human‐readable string. |
|
Return the address as a uint64_t, in host byte order. |
|
Return the address as a uint64_t, in network byte order. |
|
Return true if the two MAC addresses are equal. |
|
Return true if the two MAC addresses are not equal. |
|
Order two MAC addresses by their host‐byte‐order value. |
Static Member Functions
Name |
Description |
Construct the multicast MacAddress for the specified multicast IPv6 address. |
|
Construct a MAC address from its 6‐byte binary value, throwing on failure. |
|
Construct a MacAddress from a uint64_t in host byte order. |
|
Construct a MacAddress from a uint64_t in network byte order. |
|
Parse a MacAddress from a human‐readable string, throwing on failure. |
|
Construct a MAC address from its 6‐byte binary value |
|
Try to parse a MacAddress from a human‐readable string. |