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