11 #include <boost/shared_ptr.hpp>
21 typedef boost::shared_ptr<DUID>
DuidPtr;
48 DUID(
const std::vector<uint8_t>& duid);
51 DUID(
const uint8_t* duid,
size_t len);
61 const std::vector<uint8_t>&
getDuid()
const;
88 std::string
toText()
const;
131 ClientId(
const std::vector<uint8_t>& clientid);
134 ClientId(
const uint8_t* clientid,
size_t len);
147 std::string
toText()
const;
160 static ClientIdPtr
fromText(
const std::string& text);
const std::vector< uint8_t > & getDuid() const
Returns a const reference to the actual DUID value.
boost::shared_ptr< DUID > DuidPtr
static ClientIdPtr fromText(const std::string &text)
Create client identifier from the textual format.
std::string toText() const
Returns textual representation of a DUID (e.g. 00:01:02:03:ff)
bool operator==(const DUID &other) const
Compares two DUIDs for equality.
link-layer + time, see RFC3315, section 11.2
static const size_t MAX_CLIENT_ID_LEN
Maximum size of a client ID.
static const DUID & EMPTY()
Defines the constant "empty" DUID.
UUID, see RFC3315, section 11.5.
static DUID fromText(const std::string &text)
Create DUID from the textual format.
static const size_t MIN_DUID_LEN
minimum duid size The minimal DUID size specified in RFC 8415 is 1.
Holds DUID (DHCPv6 Unique Identifier)
DUIDType
specifies DUID type
DUIDType getType() const
Returns the DUID type.
const std::vector< uint8_t > & getClientId() const
Returns reference to the client-id data.
std::vector< uint8_t > duid_
The actual content of the DUID.
not a real type, just maximum defined value + 1
boost::shared_ptr< ClientId > ClientIdPtr
Shared pointer to a Client ID.
bool operator!=(const ClientId &other) const
Compares two client-ids for inequality.
std::string toText() const
Returns textual representation of a DUID (e.g. 00:01:02:03:ff)
link-layer, see RFC3315, section 11.4
static const size_t MIN_CLIENT_ID_LEN
Minimum size of a client ID.
Defines the logger used by the top-level component of kea-dhcp-ddns.
ClientId(const std::vector< uint8_t > &clientid)
Constructor based on vector
static const size_t MAX_DUID_LEN
maximum duid size As defined in RFC 8415, section 11.1
Holds Client identifier or client IPv4 address.
bool operator!=(const DUID &other) const
Compares two DUIDs for inequality.
enterprise-id, see RFC3315, section 11.3
DUID(const std::vector< uint8_t > &duid)
Constructor from vector.
bool operator==(const ClientId &other) const
Compares two client-ids for equality.