return (data_);
}
+constexpr size_t DUID::MIN_DUID_LEN;
+constexpr size_t DUID::MAX_DUID_LEN;
+
DUID::DUIDType DUID::getType() const {
if (data_.size() < 2) {
return (DUID_UNKNOWN);
return (empty);
}
+constexpr size_t ClientId::MIN_CLIENT_ID_LEN;
+constexpr size_t ClientId::MAX_CLIENT_ID_LEN;
+
ClientId::ClientId(const std::vector<uint8_t>& data) : IdentifierType<2, 255>(data) {
}
public:
/// @brief minimum duid size
+ ///
/// The minimal DUID size specified in RFC 8415, section 11.1 is 3:
/// 2 fixed octets for the type + 1 minimum octet for the value.
static constexpr size_t MIN_DUID_LEN = IdentifierType::getMinSize();
/// @brief maximum duid size
+ ///
/// The maximum DUID size specified in RFC 8415, section 11.1 is 130:
/// 2 fixed octets for the type + 128 maximum octets for the value.
static constexpr size_t MAX_DUID_LEN = IdentifierType::getMaxSize();