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;
118 static const size_t MIN_CLIENT_ID_LEN = 2;
131 ClientId(
const std::vector<uint8_t>& clientid);
134 ClientId(
const uint8_t* clientid,
size_t len);
144 const std::vector<uint8_t>& getClientId()
const;
147 std::string
toText()
const;
160 static ClientIdPtr
fromText(
const std::string& text);
boost::shared_ptr< DUID > DuidPtr
link-layer + time, see RFC3315, section 11.2
static const DUID & EMPTY()
Defines the constant "empty" DUID.
UUID, see RFC3315, section 11.5.
bool operator==(const DUID &other) const
Compares two DUIDs for equality.
static DUID fromText(const std::string &text)
Create DUID from the textual format.
DUIDType getType() const
Returns the DUID type.
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
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.
link-layer, see RFC3315, section 11.4
const std::vector< uint8_t > & getDuid() const
Returns a const reference to the actual DUID value.
Defines the logger used by the top-level component of kea-lfc.
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.
enterprise-id, see RFC3315, section 11.3
std::string toText() const
Returns textual representation of a DUID (e.g. 00:01:02:03:ff)
DUID(const std::vector< uint8_t > &duid)
Constructor from vector.
bool operator!=(const DUID &other) const
Compares two DUIDs for inequality.