class MacAddress::MAC
- MacAddress::MAC
- Reference
- Object
Defined in:
mac_address/mac.crConstructors
Instance Method Summary
-
#bare : String
Return the bare MAC address without any delimiters.
-
#binary : String
Return the binary representation for a MAC.
-
#bits : Array(String)
Return the MAC address as an array of bits.
-
#broadcast? : Bool
Returns true if MAC is a broadcast address.
-
#dot : String
Return the MAC address in dot notation.
-
#eui : String
Return the MAC address in EUI notation.
-
#hex : String
Return the MAC address in hex notation.
-
#int : UInt64
Return the MAC address as an integer.
-
#ipv6_link_local : String
Returns the MAC address as an IPv6 link local address.
-
#multicast? : Bool
Returns true if MAC is a multicast address.
-
#nic : String
Return the nic portion of the MAC address.
-
#octets : Array(String)
Returns the MAC address in an array of octets.
-
#oui : String
Return the vendor portion of the MAC address.
-
#unicast? : Bool
Returns true if MAC is a unicast address.
Constructor Detail
Instance Method Detail
Return the binary representation for a MAC. EG: 11-aa-bb-cd-ef-33 => 100011010101010111011110011011110111100110011
Return the MAC address as an array of bits. EG: "11-aa-bb-cd-ef-33" => ["0001", "0001", "1010", "1010", "1011", "1011", "1100", "1101", "1110", "1111", "0011", "0011"]
Returns the MAC address as an IPv6 link local address. EG: 11-aa-bb-cd-ef-33 => fe80::13aa:bbff:fecd:ef33
TODO Add description on the conversion process.
Returns the MAC address in an array of octets. EG: 11-aa-bb-cd-ef-33 => ["11", "aa", "bb", "cd", "ef", "33"]