UNISTDX_NET_ETHERNET_ADDRESS
class sys::ethernet_address
Types
  • using size_type = size_t

    Alias to std::size_t.

  • using const_iterator = const_pointer

    Constant iterator.

  • using iterator = pointer

    Iterator.

  • using reference = value_type &

    Reference to octet.

  • using pointer = value_type *

    Pointer to octet.

  • using value_type = u8

    Octet type.

Fields
  • char _bytes[6]
  • value_type _octets[6]
  • const typedef value_type & const_reference

    Constant reference to octet.

  • const typedef value_type * const_pointer

    Constant pointer to octet.

Methods
Friends
  • operator>>

    Get address in binary form.

  • operator<<

    Put address in binary form.

  • operator>>

    Parse textual representation of the address.

  • operator<<

    Print textual representation of the address.

struct std::hash< sys::ethernet_address >

Specialisation of std::hash for sys::ethernet_address.

Base classes
  • public std::hash< sys::u64 >
Types
  • using argument_type = ::sys::ethernet_address

    Hash function argument type.

  • using result_type = size_t

    Hash function return value type.

Methods
  • operator()(const argument_type & rhs) const -> result_type

    Compute hash by computing hash of the ethernet address as the 48-bit number.

operator!=(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator>=(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator<(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator<<(std::ostream & out, const ethernet_address & rhs) -> std::ostream &

Print textual representation of the address.

operator==(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator>(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator<=(const ethernet_address & lhs, const ethernet_address & rhs) -> bool
operator>>(std::istream & in, ethernet_address & rhs) -> std::istream &

Parse textual representation of the address.