11#include <boost/noncopyable.hpp>
70 DUIDFactory(
const std::string& storage_location =
"");
97 void createLLT(
const uint16_t htype,
const uint32_t time_in,
98 const std::vector<uint8_t>& ll_identifier);
111 void createEN(
const uint32_t enterprise_id,
112 const std::vector<uint8_t>& identifier);
131 const std::vector<uint8_t>& ll_identifier);
160 void createLinkLayerId(std::vector<uint8_t>& identifier,
161 uint16_t& htype)
const;
169 void set(
const std::vector<uint8_t>& duid_vector);
175 std::string storage_location_;
Factory for generating DUIDs (DHCP Unique Identifiers).
bool isStored() const
Checks if generated DUID will be stored in the file.
DUIDFactory(const std::string &storage_location="")
Constructor.
void createLLT(const uint16_t htype, const uint32_t time_in, const std::vector< uint8_t > &ll_identifier)
Generates DUID-LLT.
void createEN(const uint32_t enterprise_id, const std::vector< uint8_t > &identifier)
Generates DUID-EN.
DuidPtr get()
Returns current DUID.
void createLL(const uint16_t htype, const std::vector< uint8_t > &ll_identifier)
Generates DUID-LL.
boost::shared_ptr< DUID > DuidPtr
Defines the logger used by the top-level component of kea-lfc.