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/mysql_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/mysql_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/mysql_host_data_source.h | 64 |
1 files changed, 2 insertions, 62 deletions
diff --git a/src/lib/dhcpsrv/mysql_host_data_source.h b/src/lib/dhcpsrv/mysql_host_data_source.h index d64d3c8d61..62483dd690 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.h +++ b/src/lib/dhcpsrv/mysql_host_data_source.h @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-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 @@ -113,30 +113,6 @@ public: const Host::IdentifierType& identifier_type, const uint8_t* identifier_begin, const size_t identifier_len); - /// @brief Return all hosts for the specified HW address or DUID. - /// - /// This method returns all @c Host objects which represent reservations - /// for the specified HW address or DUID. Note, that this method may - /// return multiple reservations because a particular client may have - /// reservations in multiple subnets and the same client may be identified - /// by HW address or DUID. The server is unable to verify that the specific - /// DUID and HW address belong to the same client, until the client sends - /// a DHCP message. - /// - /// 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 const @c Host objects. - virtual ConstHostCollection - getAll(const HWAddrPtr& hwaddr, const DuidPtr& duid = DuidPtr()) const; - /// @brief Return all hosts connected to any subnet for which reservations /// have been made using a specified identifier. /// @@ -167,24 +143,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 MultipleRecords 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 Const @c Host object using a specified HW address or DUID. - virtual ConstHostPtr - get4(const SubnetID& subnet_id, const HWAddrPtr& hwaddr, - const DuidPtr& duid = DuidPtr()) const; - - /// @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 @@ -218,24 +176,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 MultipleRecords 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 Const @c Host object using a specified HW address or DUID. - virtual ConstHostPtr - get6(const SubnetID& subnet_id, const DuidPtr& duid, - const HWAddrPtr& hwaddr = HWAddrPtr()) const; - - /// @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 @@ -253,7 +193,7 @@ public: /// @param prefix IPv6 prefix for which the @c Host object is searched. /// @param prefix_len IPv6 prefix length. /// - /// @return Const @c Host object using a specified HW address or DUID. + /// @return Const @c Host object using a specified IPv6 prefix. virtual ConstHostPtr get6(const asiolink::IOAddress& prefix, const uint8_t prefix_len) const; |