From: Piotrek Zadroga Date: Thu, 22 Jun 2023 11:17:11 +0000 (+0200) Subject: [#2795] update comments X-Git-Tag: Kea-2.4.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668acb810a7fe6b3173099026fb0b1aa035a946c;p=thirdparty%2Fkea.git [#2795] update comments --- diff --git a/src/lib/dhcpsrv/host_mgr.h b/src/lib/dhcpsrv/host_mgr.h index b4bdd95e67..f6e6501d1d 100644 --- a/src/lib/dhcpsrv/host_mgr.h +++ b/src/lib/dhcpsrv/host_mgr.h @@ -646,10 +646,10 @@ public: virtual ConstHostCollection getAll6(const asiolink::IOAddress& address) const; - /// @brief Returns a collection of hosts using the specified IPv6 address. + /// @brief Returns a collection of hosts using the specified IPv6 address/prefix. /// /// This method may return multiple @c Host objects if they are connected to - /// different subnets or if there are multiple hosts with the same IPv6 address. + /// different subnets or if there are multiple hosts with the same IPv6 address/prefix. /// /// If matching reservations are both in the primary and the alternate /// data source, all of them are returned. The reservations from the diff --git a/src/lib/dhcpsrv/mysql_host_data_source.cc b/src/lib/dhcpsrv/mysql_host_data_source.cc index 6995d068ed..0b6b977afa 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.cc +++ b/src/lib/dhcpsrv/mysql_host_data_source.cc @@ -2078,7 +2078,7 @@ public: GET_HOST_SUBID_ADDR, // Gets host by IPv4 SubnetID and IPv4 address GET_HOST_PREFIX, // Gets host by IPv6 prefix GET_HOST_SUBID6_ADDR, // Gets host by IPv6 SubnetID and IPv6 prefix - GET_HOST_ADDR6, // Gets host by IPv6 address + GET_HOST_ADDR6, // Gets host by IPv6 address/prefix GET_HOST_SUBID4, // Gets hosts by IPv4 SubnetID GET_HOST_SUBID6, // Gets hosts by IPv6 SubnetID GET_HOST_HOSTNAME, // Gets hosts by hostname @@ -2488,7 +2488,7 @@ TaggedStatementArray tagged_statements = { { "ORDER BY h.host_id, o.option_id, r.reservation_id"}, // Retrieves host information, IPv6 reservations and DHCPv6 options - // associated with a host using IPv6 address. This query + // associated with a host using IPv6 address/prefix. This query // may return host information for one or more host reservations. Even // if only one host is found, multiple rows // are returned due to left joining IPv6 reservations and DHCPv6 options. diff --git a/src/lib/dhcpsrv/pgsql_host_data_source.cc b/src/lib/dhcpsrv/pgsql_host_data_source.cc index 7b1b8f0791..f4934bc2a1 100644 --- a/src/lib/dhcpsrv/pgsql_host_data_source.cc +++ b/src/lib/dhcpsrv/pgsql_host_data_source.cc @@ -1401,7 +1401,7 @@ public: GET_HOST_SUBID_ADDR, // Gets host by IPv4 SubnetID and IPv4 address GET_HOST_PREFIX, // Gets host by IPv6 prefix GET_HOST_SUBID6_ADDR, // Gets host by IPv6 SubnetID and IPv6 prefix - GET_HOST_ADDR6, // Gets host by IPv6 address + GET_HOST_ADDR6, // Gets host by IPv6 address/prefix GET_HOST_SUBID4, // Gets hosts by IPv4 SubnetID GET_HOST_SUBID6, // Gets hosts by IPv6 SubnetID GET_HOST_HOSTNAME, // Gets hosts by hostname @@ -1816,7 +1816,7 @@ TaggedStatementArray tagged_statements = { { // PgSqlHostDataSourceImpl::GET_HOST_ADDR6 // Retrieves host information, IPv6 reservations and DHCPv6 options - // associated with a host using IPv6 address. This query + // associated with a host using IPv6 address/prefix. This query // may return host information for one or more host reservations. Even // if only one host is found, multiple rows // are returned due to left joining IPv6 reservations and DHCPv6 options.