2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

[5009] Implemented get6(subnet_id, address) function for SQL backends.

Also removed uint32_t cast operator from IOAddress to remove
ambiguity when calling this new function.
This commit is contained in:
Marcin Siodelski
2016-09-20 09:29:06 +02:00
parent bb34f5f3fe
commit 8cce1aa713
29 changed files with 261 additions and 48 deletions

View File

@@ -206,6 +206,16 @@ public:
virtual ConstHostPtr
get6(const asiolink::IOAddress& prefix, const uint8_t prefix_len) const;
/// @brief Returns a host connected to the IPv6 subnet and having
/// a reservation for a specified IPv6 address or prefix.
///
/// @param subnet_id Subnet identifier.
/// @param address reserved IPv6 address/prefix.
///
/// @return Const @c Host object using a specified IPv6 address/prefix.
virtual ConstHostPtr
get6(const SubnetID& subnet_id, const asiolink::IOAddress& address) const;
/// @brief Adds a new host to the collection.
///
/// The method will insert the given host and all of its children (v4