From: Marcin Siodelski Date: Wed, 6 Jul 2016 15:48:13 +0000 (+0200) Subject: [4321] Corrected indentation and added description for a function. X-Git-Tag: trac4551_base~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b16fc23c1fc59beb14c8eed162887eb6c2e292a;p=thirdparty%2Fkea.git [4321] Corrected indentation and added description for a function. --- diff --git a/src/bin/dhcp6/tests/dhcp6_client.h b/src/bin/dhcp6/tests/dhcp6_client.h index 612e4a69ff..3f0fc6ff3c 100644 --- a/src/bin/dhcp6/tests/dhcp6_client.h +++ b/src/bin/dhcp6/tests/dhcp6_client.h @@ -369,7 +369,7 @@ public: /// /// @return Vector containing leases for the specified address. std::vector - getLeasesByAddress(const asiolink::IOAddress& address) const; + getLeasesByAddress(const asiolink::IOAddress& address) const; /// @brief Returns leases belonging to specified address range. /// @@ -378,8 +378,8 @@ public: /// /// @return Vector containing leases belonging to specified address range. std::vector - getLeasesByAddressRange(const asiolink::IOAddress& first, - const asiolink::IOAddress& second) const; + getLeasesByAddressRange(const asiolink::IOAddress& first, + const asiolink::IOAddress& second) const; /// @brief Returns leases belonging to prefix pool. /// @@ -389,9 +389,9 @@ public: /// /// @return Vector containing leases belonging to specified prefix pool. std::vector - getLeasesByPrefixPool(const asiolink::IOAddress& prefix, - const uint8_t prefix_len, - const uint8_t delegated_len) const; + getLeasesByPrefixPool(const asiolink::IOAddress& prefix, + const uint8_t prefix_len, + const uint8_t delegated_len) const; /// @brief Checks if client has lease for the specified address. /// @@ -458,6 +458,12 @@ public: const uint8_t prefix_len, const uint8_t delegated_len) const; + /// @brief Checks if client has a lease with zero lifetimes for a prefix. + /// + /// @param prefix Prefix. + /// @param prefix_len Prefix length. + /// + /// @return true if client has a lease with zero lifetimes for a prefix. bool hasLeaseWithZeroLifetimeForPrefix(const asiolink::IOAddress& prefix, const uint8_t prefix_len) const;