]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
reverted some changes which are too pedantic
authorAndrei Pavel <andrei.pavel@qualitance.com>
Fri, 18 Aug 2017 06:44:29 +0000 (09:44 +0300)
committerAndrei Pavel <andrei.pavel@qualitance.com>
Fri, 18 Aug 2017 06:44:29 +0000 (09:44 +0300)
12 files changed:
configure.ac
src/bin/d2/tests/d2_update_message_unittests.cc
src/bin/d2/tests/dns_client_unittests.cc
src/bin/dhcp4/dhcp4to6_ipc.cc
src/lib/dhcp/tests/option_definition_unittest.cc
src/lib/dhcp_ddns/tests/ncr_udp_unittests.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/base_host_data_source.h
src/lib/dhcpsrv/host_mgr.h
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/subnet.h
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.h

index 7bcc8197a4508ed751e7879ea6da5423bc7d355e..bba2cc942ae3069bd1d0c8c83a282c344259b5f7 100644 (file)
@@ -1488,11 +1488,11 @@ if test "x$enable_generate_docs" != xno ; then
   else
     AC_MSG_CHECKING([if $XSLTPROC works])
     # run xsltproc to see if works
-    $XSLTPROC --novalid --xinclude --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
+    $XSLTPROC --novalid --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
     if test $? -ne 0 ; then
       AC_MSG_ERROR("Error with $XSLTPROC using release/xsl/current/manpages/docbook.xsl")
     fi
-    $XSLTPROC --novalid --xinclude --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
+    $XSLTPROC --novalid --xinclude http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
     if test $? -ne 0 ; then
       AC_MSG_ERROR("Error with $XSLTPROC using release/xsl/current/html/docbook.xsl")
     fi
index c43ac9442692f2856982e031fa7ccc7eb92ca7a4..6e6fa5d94984535b73b0f632b32cddcb3c64deba 100644 (file)
@@ -25,20 +25,20 @@ using namespace isc::dns::rdata;
 using namespace isc::util;
 
 namespace {
- /// @brief Test fixture class for testing D2UpdateMessage object.
+ /// @brief Test fixture class for testing D2UpdateMessage object
 class D2UpdateMessageTest : public ::testing::Test {
 public:
-    /// @brief Constructor.
+    /// @brief Constructor
     //
     // Does nothing.
     D2UpdateMessageTest() { }
 
-    /// @brief Destructor.
+    /// @brief Destructor
     //
     // Does nothing.
     ~D2UpdateMessageTest() { };
 
-    /// @brief Return string representation of the name encoded in wire format.
+    /// @brief Returns string representation of the name encoded in wire format.
     //
     // This function reads the number of bytes specified in the second
     // argument from the buffer. It doesn't check if buffer has sufficient
index 91c3e8eff0ea89b7e89f15ba1cf16d8761a2a710..74ddecc2df40f4c8a161c92915eb2dee1b0db168 100644 (file)
@@ -36,7 +36,7 @@ const char* TEST_ADDRESS = "127.0.0.1";
 const uint16_t TEST_PORT = 5301;
 const size_t MAX_SIZE = 1024;
 const long TEST_TIMEOUT = 5 * 1000;
-/// @brief Test Fixture class.
+/// @brief Test Fixture class
 //
 // This test fixture class implements DNSClient::Callback so as it can be
 // installed as a completion callback for tests it implements. This callback
@@ -63,7 +63,7 @@ public:
     int received_;
     int expected_;
 
-    /// @brief Constructor.
+    /// @brief Constructor
     //
     // This constructor overrides the default logging level of asiodns logger to
     // prevent it from emitting debug messages from IOFetch class. Such an error
@@ -87,14 +87,14 @@ public:
                           TEST_TIMEOUT);
     }
 
-    /// @brief Destructor.
+    /// @brief Destructor
     //
     // Sets the asiodns logging level back to DEBUG.
     virtual ~DNSClientTest() {
         asiodns::logger.setSeverity(isc::log::DEBUG);
     };
 
-    /// @brief Exchange completion callback.
+    /// @brief Exchange completion callback
     //
     // This callback is called when the exchange with the DNS server is
     // complete or an error occurred. This includes the occurrence of a timeout.
@@ -132,7 +132,7 @@ public:
         }
     }
 
-    /// @brief Handler invoked when test timeout is hit.
+    /// @brief Handler invoked when test timeout is hit
     //
     // This callback stops all running (hanging) tasks on IO service.
     void testTimeoutHandler() {
@@ -140,7 +140,7 @@ public:
         FAIL() << "Test timeout hit.";
     }
 
-    /// @brief Handler invoked when test request is received.
+    /// @brief Handler invoked when test request is received
     //
     // This callback handler is installed when performing async read on a
     // socket to emulate reception of the DNS Update request by a server.
index 39188c201298a688d5d76fa111cccdf037db1ba3..1db3cb5e5dda02d02f43499a70f2d947c87f2043 100644 (file)
@@ -89,7 +89,7 @@ void Dhcp4to6Ipc::handler() {
         return;
     }
 
-    // Get the DHCPv4 message
+    // Get the DHCPv4 message.
     OptionPtr msg = msgs.begin()->second;
     if (!msg) {
         LOG_DEBUG(packet4_logger, DBG_DHCP4_DETAIL, DHCP4_DHCP4O6_BAD_PACKET)
index 8b7f827218a6109392d191c2fab443517103facb..7a517f181aa9ed43db73c47d85b3c2ff7864d347 100644 (file)
@@ -38,7 +38,7 @@ namespace {
 /// it around for the future.
 class OptionDefinitionTest : public ::testing::Test {
 public:
-    /// @brief Constructor.
+    /// @brief Constructor
     OptionDefinitionTest() { }
 
 };
@@ -1603,7 +1603,7 @@ TEST_F(OptionDefinitionTest, tuple4Tokenized) {
     OpaqueDataTuple tuple(OpaqueDataTuple::LENGTH_1_BYTE);
     ASSERT_NO_THROW(option_cast->readTuple(tuple));
     EXPECT_EQ("foobar", tuple.getText());
-}    
+}
 
 // This test verifies that a definition of an option with a single DHCPv6
 // tuple can be created and that the instance of this option can be
@@ -1632,7 +1632,7 @@ TEST_F(OptionDefinitionTest, tuple6Tokenized) {
     OpaqueDataTuple tuple(OpaqueDataTuple::LENGTH_2_BYTES);
     ASSERT_NO_THROW(option_cast->readTuple(tuple));
     EXPECT_EQ("foobar", tuple.getText());
-}    
+}
 
 // This test verifies that a definition of an option with an array
 // of DHCPv4 tuples can be created and that the instance of this option
index e6ac57a73966dc7d812ae5ccf68c2ef0d9ad61b9..7d492cbfc6f59f71bcc973ebde72cbf524eda0dc 100644 (file)
@@ -218,7 +218,7 @@ public:
         received_ncr_ = ncr;
     }
 
-    /// @brief Handler invoked when test timeout is hit.
+    /// @brief Handler invoked when test timeout is hit
     ///
     /// This callback stops all running (hanging) tasks on IO service.
     void testTimeoutHandler() {
@@ -657,7 +657,7 @@ public:
         sent_ncrs_.push_back(ncr);
     }
 
-    /// @brief Handler invoked when test timeout is hit.
+    /// @brief Handler invoked when test timeout is hit
     ///
     /// This callback stops all running (hanging) tasks on IO service.
     void testTimeoutHandler() {
index 3f3623118b399f1aaa332bb2c21d797c38f23a02..dfec61f8d68ded02cb9ed19e899bcd2ff1bf8bfc 100644 (file)
@@ -1478,7 +1478,7 @@ private:
 /// @brief A pointer to the @c AllocEngine object.
 typedef boost::shared_ptr<AllocEngine> AllocEnginePtr;
 
-}  // namespace dhcp
-}  // namespace isc
+}; // namespace isc::dhcp
+}; // namespace isc
 
 #endif // ALLOC_ENGINE_H
index e4d153ea6dbed4f1385fe470c515cd4bb2962ab2..2e3ed16db1ad2124e599868a95983520fdd464eb 100644 (file)
@@ -7,14 +7,11 @@
 #ifndef BASE_HOST_DATA_SOURCE_H
 #define BASE_HOST_DATA_SOURCE_H
 
+#include <asiolink/io_address.h>
 #include <dhcp/duid.h>
 #include <dhcp/hwaddr.h>
 #include <dhcpsrv/host.h>
-
-#include <asiolink/io_address.h>
 #include <exceptions/exceptions.h>
-#include <stdint.h>
-
 #include <boost/shared_ptr.hpp>
 
 namespace isc {
@@ -98,8 +95,8 @@ public:
     /// @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 = 0;
+    virtual ConstHostCollection
+    getAll(const HWAddrPtr& hwaddr, const DuidPtr& duid = DuidPtr()) const = 0;
 
     /// @brief Return all hosts connected to any subnet for which reservations
     /// have been made using a specified identifier.
@@ -114,9 +111,10 @@ public:
     /// @param identifier_len Identifier length.
     ///
     /// @return Collection of const @c Host objects.
-    virtual ConstHostCollection getAll(const Host::IdentifierType& identifier_type,
-                                       const uint8_t* identifier_begin,
-                                       const size_t identifier_len) const = 0;
+    virtual ConstHostCollection
+    getAll(const Host::IdentifierType& identifier_type,
+           const uint8_t* identifier_begin,
+           const size_t identifier_len) const = 0;
 
     /// @brief Returns a collection of hosts using the specified IPv4 address.
     ///
@@ -126,7 +124,8 @@ public:
     /// @param address IPv4 address for which the @c Host object is searched.
     ///
     /// @return Collection of const @c Host objects.
-    virtual ConstHostCollection getAll4(const asiolink::IOAddress& address) const = 0;
+    virtual ConstHostCollection
+    getAll4(const asiolink::IOAddress& address) const = 0;
 
     /// @brief Returns a host connected to the IPv4 subnet.
     ///
@@ -142,8 +141,9 @@ public:
     /// @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 = 0;
+    virtual ConstHostPtr
+    get4(const SubnetID& subnet_id, const HWAddrPtr& hwaddr,
+         const DuidPtr& duid = DuidPtr()) const = 0;
 
 
     /// @brief Returns a host connected to the IPv4 subnet.
@@ -156,10 +156,11 @@ public:
     ///
     /// @return Const @c Host object for which reservation has been made using
     /// the specified identifier.
-    virtual ConstHostPtr get4(const SubnetID& subnet_id,
-                              const Host::IdentifierType& identifier_type,
-                              const uint8_t* identifier_begin,
-                              const size_t identifier_len) const = 0;
+    virtual ConstHostPtr
+    get4(const SubnetID& subnet_id,
+         const Host::IdentifierType& identifier_type,
+         const uint8_t* identifier_begin,
+         const size_t identifier_len) const = 0;
 
     /// @brief Returns a host connected to the IPv4 subnet and having
     /// a reservation for a specified IPv4 address.
@@ -177,8 +178,9 @@ public:
     /// @param address reserved IPv4 address.
     ///
     /// @return Const @c Host object using a specified IPv4 address.
-    virtual ConstHostPtr get4(const SubnetID& subnet_id,
-                              const asiolink::IOAddress& address) const = 0;
+    virtual ConstHostPtr
+    get4(const SubnetID& subnet_id,
+         const asiolink::IOAddress& address) const = 0;
 
     /// @brief Returns a host connected to the IPv6 subnet.
     ///
@@ -194,9 +196,9 @@ public:
     /// @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 = 0;
+    virtual ConstHostPtr
+    get6(const SubnetID& subnet_id, const DuidPtr& duid,
+         const HWAddrPtr& hwaddr = HWAddrPtr()) const = 0;
 
     /// @brief Returns a host connected to the IPv6 subnet.
     ///
@@ -208,10 +210,11 @@ public:
     ///
     /// @return Const @c Host object for which reservation has been made using
     /// the specified identifier.
-    virtual ConstHostPtr get6(const SubnetID& subnet_id,
-                              const Host::IdentifierType& identifier_type,
-                              const uint8_t* identifier_begin,
-                              const size_t identifier_len) const = 0;
+    virtual ConstHostPtr
+    get6(const SubnetID& subnet_id,
+         const Host::IdentifierType& identifier_type,
+         const uint8_t* identifier_begin,
+         const size_t identifier_len) const = 0;
 
     /// @brief Returns a host using the specified IPv6 prefix.
     ///
@@ -219,8 +222,8 @@ public:
     /// @param prefix_len IPv6 prefix length.
     ///
     /// @return Const @c Host object using a specified HW address or DUID.
-    virtual ConstHostPtr get6(const asiolink::IOAddress& prefix,
-                              const uint8_t prefix_len) const = 0;
+    virtual ConstHostPtr
+    get6(const asiolink::IOAddress& prefix, const uint8_t prefix_len) const = 0;
 
     /// @brief Returns a host connected to the IPv6 subnet and having
     /// a reservation for a specified IPv6 address or prefix.
@@ -307,7 +310,7 @@ public:
 /// @brief HostDataSource pointer
 typedef boost::shared_ptr<BaseHostDataSource> HostDataSourcePtr;
 
-}  // namespace dhcp
-}  // namespace isc
+}
+}
 
 #endif // BASE_HOST_DATA_SOURCE_H
index dd5177a3ddf280f004382eb65f11c7f715f71687..c177f58829fca739bda79f79a8bf21445ee68a83 100644 (file)
@@ -337,8 +337,7 @@ private:
     static boost::scoped_ptr<HostMgr>& getHostMgrPtr();
 
 };
-
-}  // namespace dhcp
-}  // namespace isc
+}
+}
 
 #endif // HOST_MGR_H
index 1a91cdb3574bbdaee0b5b0589967b1a4b081adc8..30995de0d063d5be6777843af8e41083f2d01276 100644 (file)
@@ -523,7 +523,8 @@ SubnetConfigParser::parse(ConstElementPtr subnet) {
 
 Subnet::HRMode
 SubnetConfigParser::hrModeFromText(const std::string& txt) {
-    if ( (txt.compare("disabled") == 0) || (txt.compare("off") == 0) )  {
+    if ( (txt.compare("disabled") == 0) ||
+         (txt.compare("off") == 0) )  {
         return (Subnet::HR_DISABLED);
     } else if (txt.compare("out-of-pool") == 0) {
         return (Subnet::HR_OUT_OF_POOL);
index e11187bfa30a0c3b7aef2e5256ed40e726413b2b..3d91ae8bb9074784053d76280fd3dde677e408ed 100644 (file)
@@ -306,14 +306,16 @@ public:
     ///
     /// @param client_classes list of all classes the client belongs to
     /// @return true if client can be supported, false otherwise
-    bool clientSupported(const isc::dhcp::ClientClasses& client_classes) const;
+    bool
+    clientSupported(const isc::dhcp::ClientClasses& client_classes) const;
 
     /// @brief adds class class_name to the list of supported classes
     ///
     /// Also see explanation note in @ref white_list_.
     ///
     /// @param class_name client class to be supported by this subnet
-    void allowClientClass(const isc::dhcp::ClientClass& class_name);
+    void
+    allowClientClass(const isc::dhcp::ClientClass& class_name);
 
     /// @brief returns the client class white list
     ///
@@ -333,7 +335,8 @@ public:
     /// performance reasons.
     ///
     /// @return whether in-pool host reservations are allowed.
-    HRMode getHostReservationMode() const {
+    HRMode
+    getHostReservationMode() const {
         return (host_reservation_mode_);
     }
 
@@ -515,8 +518,8 @@ protected:
     ///
     /// See @ref HRMode type for details.
     HRMode host_reservation_mode_;
-
 private:
+
     /// @brief Pointer to the option data configuration for this subnet.
     CfgOptionPtr cfg_option_;
 };
index c2a77d31b5cf846a6ed27c2cacc4d87105449aa5..a1bbd9a45b17f23723fc692507de6d5027fffa6e 100644 (file)
@@ -406,8 +406,8 @@ public:
     LeaseMgr* lmptr_;
 };
 
-}  // namespace test
-}  // namespace dhcp
-}  // namespace isc
+}; // namespace test
+}; // namespace dhcp
+}; // namespace isc
 
 #endif