38 if (
data_.size() < 2) {
56 static DUID empty({0, 0, 0});
static constexpr size_t MAX_CLIENT_ID_LEN
Maximum size of a client ID.
const std::vector< uint8_t > & getClientId() const
Returns reference to the client-id data.
ClientId(const std::vector< uint8_t > &data)
Constructor based on vector<uint8_t>
static ClientIdPtr fromText(const std::string &text)
Create client identifier from the textual format.
static constexpr size_t MIN_CLIENT_ID_LEN
Minimum size of a client ID.
Holds DUID (DHCPv6 Unique Identifier)
static constexpr size_t MIN_DUID_LEN
minimum duid size
static DUID fromText(const std::string &text)
Create DUID from the textual format.
static const DUID & EMPTY()
Defines the constant "empty" DUID.
static constexpr size_t MAX_DUID_LEN
maximum duid size
DUIDType
specifies DUID type
@ DUID_MAX
not a real type, just maximum defined value + 1
@ DUID_UNKNOWN
invalid/unknown type
const std::vector< uint8_t > & getDuid() const
Returns a const reference to the actual DUID value.
DUIDType getType() const
Returns the DUID type.
DUID(const std::vector< uint8_t > &data)
Constructor from vector.
virtual ~IdentifierBaseType()=0
Pure virtual destructor.
std::vector< uint8_t > data_
The actual content of the Identifier.
static std::vector< uint8_t > fromText(const std::string &text)
This static function parses an Identifier specified in the textual format.
boost::shared_ptr< ClientId > ClientIdPtr
Shared pointer to a Client ID.
Defines the logger used by the top-level component of kea-lfc.