]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2401] Addressed comments
authorFrancis Dupont <fdupont@isc.org>
Wed, 10 Aug 2022 13:53:21 +0000 (15:53 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 10 Aug 2022 13:53:21 +0000 (15:53 +0200)
src/lib/dhcpsrv/network.cc
src/lib/dhcpsrv/network.h

index 470c09d7d4abef127861af5f33491140298e62b2..688762b7abdb7cc698e7496c045e1f8bf0716bbc 100644 (file)
@@ -36,7 +36,7 @@ Network::RelayInfo::hasAddresses() const {
 
 bool
 Network::RelayInfo::containsAddress(const asiolink::IOAddress& addr) const {
-    auto const& index = addresses_.get<IOAddressListasSetTag>();
+    auto const& index = addresses_.get<IOAddressListSetTag>();
     return (index.find(addr) != index.end());
 }
 
index 314e8655c59e8f795853de6a70863fdeb8a1245c..aab3727d4ac6bb707372b7725c1ecc9fa039ff09 100644 (file)
@@ -28,8 +28,8 @@
 #include <boost/multi_index_container.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/weak_ptr.hpp>
-#include <cstdint>
 
+#include <cstdint>
 #include <functional>
 #include <string>
 
@@ -43,10 +43,10 @@ namespace isc {
 namespace dhcp {
 
 /// @brief Tag for the list of IO addresses as a list.
-struct IOAddressListasListTag { };
+struct IOAddressListListTag { };
 
 /// @brief Tag for the list of IO addresses as a set.
-struct IOAddressListasSetTag { };
+struct IOAddressListSetTag { };
 
 /// @brief List of IO addresses
 typedef boost::multi_index_container<
@@ -56,11 +56,11 @@ typedef boost::multi_index_container<
     boost::multi_index::indexed_by<
         // First and default index allows for in order iteration.
         boost::multi_index::sequenced<
-            boost::multi_index::tag<IOAddressListasListTag>
+            boost::multi_index::tag<IOAddressListListTag>
         >,
         // Second index allows for checking existence.
         boost::multi_index::hashed_unique<
-            boost::multi_index::tag<IOAddressListasSetTag>,
+            boost::multi_index::tag<IOAddressListSetTag>,
             boost::multi_index::identity<asiolink::IOAddress>
         >
     >