Browse Source

[4234] Qualified Type in Lease6 constructor

Francis Dupont 9 years ago
parent
commit
64b6fbb6df
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/lib/dhcpsrv/lease.cc
  2. 3 3
      src/lib/dhcpsrv/lease.h

+ 2 - 2
src/lib/dhcpsrv/lease.cc

@@ -228,7 +228,7 @@ Lease4::operator=(const Lease4& other) {
     return (*this);
     return (*this);
 }
 }
 
 
-Lease6::Lease6(Type type, const isc::asiolink::IOAddress& addr,
+Lease6::Lease6(Lease::Type type, const isc::asiolink::IOAddress& addr,
                DuidPtr duid, uint32_t iaid, uint32_t preferred, uint32_t valid,
                DuidPtr duid, uint32_t iaid, uint32_t preferred, uint32_t valid,
                uint32_t t1, uint32_t t2, SubnetID subnet_id,
                uint32_t t1, uint32_t t2, SubnetID subnet_id,
                const HWAddrPtr& hwaddr, uint8_t prefixlen)
                const HWAddrPtr& hwaddr, uint8_t prefixlen)
@@ -242,7 +242,7 @@ Lease6::Lease6(Type type, const isc::asiolink::IOAddress& addr,
     cltt_ = time(NULL);
     cltt_ = time(NULL);
 }
 }
 
 
-Lease6::Lease6(Type type, const isc::asiolink::IOAddress& addr,
+Lease6::Lease6(Lease::Type type, const isc::asiolink::IOAddress& addr,
                DuidPtr duid, uint32_t iaid, uint32_t preferred, uint32_t valid,
                DuidPtr duid, uint32_t iaid, uint32_t preferred, uint32_t valid,
                uint32_t t1, uint32_t t2, SubnetID subnet_id,
                uint32_t t1, uint32_t t2, SubnetID subnet_id,
                const bool fqdn_fwd, const bool fqdn_rev,
                const bool fqdn_fwd, const bool fqdn_rev,

+ 3 - 3
src/lib/dhcpsrv/lease.h

@@ -430,7 +430,7 @@ struct Lease6 : public Lease {
     /// @brief Lease type
     /// @brief Lease type
     ///
     ///
     /// One of normal address, temporary address, or prefix.
     /// One of normal address, temporary address, or prefix.
-    Type type_;
+    Lease::Type type_;
 
 
     /// @brief IPv6 prefix length
     /// @brief IPv6 prefix length
     ///
     ///
@@ -467,7 +467,7 @@ struct Lease6 : public Lease {
     /// @param subnet_id A Subnet identifier.
     /// @param subnet_id A Subnet identifier.
     /// @param hwaddr hardware/MAC address (optional)
     /// @param hwaddr hardware/MAC address (optional)
     /// @param prefixlen An address prefix length (optional, defaults to 128)
     /// @param prefixlen An address prefix length (optional, defaults to 128)
-    Lease6(Type type, const isc::asiolink::IOAddress& addr, DuidPtr duid,
+    Lease6(Lease::Type type, const isc::asiolink::IOAddress& addr, DuidPtr duid,
            uint32_t iaid, uint32_t preferred, uint32_t valid, uint32_t t1,
            uint32_t iaid, uint32_t preferred, uint32_t valid, uint32_t t1,
            uint32_t t2, SubnetID subnet_id, const HWAddrPtr& hwaddr = HWAddrPtr(),
            uint32_t t2, SubnetID subnet_id, const HWAddrPtr& hwaddr = HWAddrPtr(),
            uint8_t prefixlen = 128);
            uint8_t prefixlen = 128);
@@ -488,7 +488,7 @@ struct Lease6 : public Lease {
     /// @param hostname FQDN of the client which gets the lease.
     /// @param hostname FQDN of the client which gets the lease.
     /// @param hwaddr hardware address (MAC), may be NULL
     /// @param hwaddr hardware address (MAC), may be NULL
     /// @param prefixlen An address prefix length.
     /// @param prefixlen An address prefix length.
-    Lease6(Type type, const isc::asiolink::IOAddress& addr, DuidPtr duid,
+    Lease6(Lease::Type type, const isc::asiolink::IOAddress& addr, DuidPtr duid,
            uint32_t iaid, uint32_t preferred, uint32_t valid, uint32_t t1,
            uint32_t iaid, uint32_t preferred, uint32_t valid, uint32_t t1,
            uint32_t t2, SubnetID subnet_id, const bool fqdn_fwd,
            uint32_t t2, SubnetID subnet_id, const bool fqdn_fwd,
            const bool fqdn_rev, const std::string& hostname,
            const bool fqdn_rev, const std::string& hostname,