/// for a specified identifier. This method may return multiple hosts
/// because a particular client may have reservations in multiple subnets.
///
+ /// @param identifier_type Identifier type.
/// @param identifier_begin Pointer to a begining of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
/// @brief Adds new identifier type to a collection of identifiers
/// to be used by the server to search for host reservations.
///
- /// @param identifier_type Name of the identifier to be added. It
+ /// @param identifier_name Name of the identifier to be added. It
/// must be one of the names supported by the @ref Host::getIdentifierType
/// function.
void addIdentifierType(const std::string& identifier_name);
/// @brief Returns host identifier in a textual form.
///
- /// @return Identifier in the form of <type>=<value>.
+ /// @return Identifier in the form of type=value.
std::string getIdentifierAsText() const;
/// @brief Returns name of the identifier of a specified type.
/// @param type Identifier type.
/// @param value Pointer to a buffer holding identifier.
/// @param length Length of the identifier.
- /// @return Identifier in the form of <type>=<value>.
+ /// @return Identifier in the form of type=value.
static std::string getIdentifierAsText(const IdentifierType& type,
const uint8_t* value,
const size_t length);
/// reservations from the primary data source are placed before the
/// reservations from the alternate source.
///
+ /// @param identifier_type Identifier type.
/// @param identifier_begin Pointer to a begining of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
const char* what) const;
/// @brief Creates collection of @ref Host objects with associated
- /// information such as IPv6 reservations and/or DHCP options..
+ /// information such as IPv6 reservations and/or DHCP options.
///
/// This method performs a query which returns host information from
/// the 'hosts' table. The query may also use LEFT JOIN clause to
/// for a specified identifier. This method may return multiple hosts
/// because a particular client may have reservations in multiple subnets.
///
+ /// @param identifier_type Identifier type.
/// @param identifier_begin Pointer to a begining of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
#include <dhcp/option_string.h>
#include <dhcp/option_int.h>
#include <dhcp/option_vendor.h>
-#include <dhcpsrv/mysql_connection.h>
+//#include <dhcpsrv/mysql_connection.h>
#include <dhcpsrv/tests/generic_host_data_source_unittest.h>
#include <dhcpsrv/tests/test_utils.h>
#include <dhcpsrv/database_connection.h>
/// for a specified identifier. This method may return multiple hosts
/// because a particular client may have reservations in multiple subnets.
///
+ /// @param identifier_type Identifier type.
/// @param identifier_begin Pointer to a begining of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
uint8_t nest_level_; ///< nesting level of the relay block to use
};
-/// @breif Token that represents a value of a field within a DHCPv6 relay
+/// @brief Token that represents a value of a field within a DHCPv6 relay
/// encapsulation
///
/// This represents a reference to a field with a given DHCPv6 relay encapsulation.