diff options
author | Francis Dupont <fdupont@isc.org> | 2018-05-24 16:51:07 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2018-05-24 16:51:07 +0200 |
commit | e018f8e6c9ce3a13b6108b318216ede28c50ae37 (patch) | |
tree | 1f8456ca1303fec24868416604dd4952e3bf990a /src/lib/dhcpsrv/writable_host_data_source.h | |
parent | [master] Added ChangeLog entry 1407 for #5626 (diff) | |
download | kea-e018f8e6c9ce3a13b6108b318216ede28c50ae37.tar.xz kea-e018f8e6c9ce3a13b6108b318216ede28c50ae37.zip |
[5563] Changes done and compile
Diffstat (limited to 'src/lib/dhcpsrv/writable_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/writable_host_data_source.h | 56 |
1 files changed, 2 insertions, 54 deletions
diff --git a/src/lib/dhcpsrv/writable_host_data_source.h b/src/lib/dhcpsrv/writable_host_data_source.h index fcdef07910..931ed12995 100644 --- a/src/lib/dhcpsrv/writable_host_data_source.h +++ b/src/lib/dhcpsrv/writable_host_data_source.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -26,22 +26,6 @@ public: /// @brief Non-const version of the @c getAll const method. /// - /// Specifying both hardware address and DUID is allowed for this method - /// and results in returning all objects that are associated with hardware - /// address OR duid. For example: if one host is associated with the - /// specified hardware address and another host is associated with the - /// specified DUID, two hosts will be returned. - /// - /// @param hwaddr HW address of the client or NULL if no HW address - /// available. - /// @param duid client id or NULL if not available, e.g. DHCPv4 client case. - /// - /// @return Collection of non-const @c Host objects. - virtual HostCollection - getAll(const HWAddrPtr& hwaddr, const DuidPtr& duid = DuidPtr()) = 0; - - /// @brief Non-const version of the @c getAll const method. - /// /// This method returns all @c Host objects which represent reservations /// for a specified identifier. This method may return multiple hosts /// because a particular client may have reservations in multiple subnets. @@ -70,24 +54,6 @@ public: /// @brief Returns a host connected to the IPv4 subnet. /// - /// Implementations of this method should guard against the case when - /// multiple instances of the @c Host are present, e.g. when two - /// @c Host objects are found, one for the DUID, another one for the - /// HW address. In such case, an implementation of this method - /// should throw an exception. - /// - /// @param subnet_id Subnet identifier. - /// @param hwaddr HW address of the client or NULL if no HW address - /// available. - /// @param duid client id or NULL if not available. - /// - /// @return Non-const @c Host object using a specified HW address or DUID. - virtual HostPtr - get4(const SubnetID& subnet_id, const HWAddrPtr& hwaddr, - const DuidPtr& duid = DuidPtr()) = 0; - - /// @brief Returns a host connected to the IPv4 subnet. - /// /// @param subnet_id Subnet identifier. /// @param identifier_type Identifier type. /// @param identifier_begin Pointer to a beginning of a buffer containing @@ -102,24 +68,6 @@ public: /// @brief Returns a host connected to the IPv6 subnet. /// - /// Implementations of this method should guard against the case when - /// multiple instances of the @c Host are present, e.g. when two - /// @c Host objects are found, one for the DUID, another one for the - /// HW address. In such case, an implementation of this method - /// should throw an exception. - /// - /// @param subnet_id Subnet identifier. - /// @param hwaddr HW address of the client or NULL if no HW address - /// available. - /// @param duid DUID or NULL if not available. - /// - /// @return Non-const @c Host object using a specified HW address or DUID. - virtual HostPtr - get6(const SubnetID& subnet_id, const DuidPtr& duid, - const HWAddrPtr& hwaddr = HWAddrPtr()) = 0; - - /// @brief Returns a host connected to the IPv6 subnet. - /// /// @param subnet_id Subnet identifier. /// @param identifier_type Identifier type. /// @param identifier_begin Pointer to a beginning of a buffer containing @@ -137,7 +85,7 @@ public: /// @param prefix IPv6 prefix for which the @c Host object is searched. /// @param prefix_len IPv6 prefix length. /// - /// @return Non-const @c Host object using a specified HW address or DUID. + /// @return Non-const @c Host object using a specified IPv6 prefix. virtual HostPtr get6(const asiolink::IOAddress& prefix, const uint8_t prefix_len) = 0; |