code: def _read_addr_resolve(self, length, htype):
          
          if htype == 1:  # Ethernet
              _byte = self._read_fileng(6)
              _addr = '-'.join(textwrap.wrap(_byte.hex(), 2))
          else:
              _addr = self._read_fileng(length)
          return _addr
docs: Resolve MAC address according to protocol.
  
          Positional arguments:
              * length -- int, hardware address length
              * htype -- int, hardware type
  
          Returns:
              * str -- MAC address