]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2786] fixed linker error
authorRazvan Becheriu <razvan@isc.org>
Wed, 10 May 2023 10:47:54 +0000 (13:47 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 10 May 2023 13:29:02 +0000 (16:29 +0300)
src/lib/dhcp/duid.cc
src/lib/dhcp/duid.h

index 06850dd6c717a3c88033dc98b0f0cfb3c9d9c820..0b18f23f1e565de30790781b19f02bf1d3052771 100644 (file)
@@ -32,6 +32,9 @@ const std::vector<uint8_t>& DUID::getDuid() const {
     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);
@@ -55,6 +58,9 @@ DUID::EMPTY() {
     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) {
 }
 
index 9c3be8a279fa065ca949e7962cd6eb165533b204..664eb1f23631732ea26f3cf60e5045d49e0fe9fa 100644 (file)
@@ -139,11 +139,13 @@ class DUID : public IdentifierType<3, 130> {
 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();