diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-09-20 09:29:06 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-09-20 09:29:06 +0200 |
commit | 8cce1aa713e547e624443fcdcf637426ada2d451 (patch) | |
tree | 22bb3148d41b691c5ed00fefeda2ad9b56fed94a /src/lib/dhcpsrv/writable_host_data_source.h | |
parent | [master] Added ChangeLog and updated AUTHORS for github #30. (diff) | |
download | kea-8cce1aa713e547e624443fcdcf637426ada2d451.tar.xz kea-8cce1aa713e547e624443fcdcf637426ada2d451.zip |
[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.
Diffstat (limited to 'src/lib/dhcpsrv/writable_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/writable_host_data_source.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/writable_host_data_source.h b/src/lib/dhcpsrv/writable_host_data_source.h index e30d36ef8c..2304a5370b 100644 --- a/src/lib/dhcpsrv/writable_host_data_source.h +++ b/src/lib/dhcpsrv/writable_host_data_source.h @@ -141,6 +141,15 @@ public: virtual HostPtr get6(const asiolink::IOAddress& prefix, const uint8_t prefix_len) = 0; + /// @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 @c Host object using a specified IPv6 address/prefix. + virtual HostPtr + get6(const SubnetID& subnet_id, const asiolink::IOAddress& address) = 0; }; } |