]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2475] addressed review
authorRazvan Becheriu <razvan@isc.org>
Fri, 22 Jul 2022 12:14:21 +0000 (15:14 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 22 Jul 2022 12:24:07 +0000 (15:24 +0300)
src/bin/agent/agent_hooks.dox
src/lib/dhcp/option_data_types.h
src/lib/dhcp/pkt.h
src/lib/http/client.cc
src/lib/testutils/log_utils.h
src/lib/yang/adaptor_config.h

index c0d352c912ede2d4d42ef610043889fff3740ea4..be2c833fd06d00d4735fa7658a9d98920ff96397 100644 (file)
@@ -32,12 +32,12 @@ command.
  - @b Description: this callout is executed when Control Agent receives a
    control command over the RESTful interface (HTTP).
    The "request" argument is a pointer to the request, in fact a
-   PostHttpRequestJsonPtr. The "response" argument is the response in
-   case of errors. The purpose of this callout is to implement authentication
+   PostHttpRequestJsonPtr. The "response" argument is the response in case
+   of errors. The purpose of this callout is to implement authentication
    and authorization. It is called after basic HTTP authentication.
-   The next step status is used only to ask to reset the handle : if
-   the response is set the processing will stop and the response is
-   returned. In particular the command is not forwarded.
+   The next step status is used only to ask to reset the handle: if the
+   response is set the processing will stop and the response is returned.
+   In particular the command is not forwarded.
 
  @subsection agentHooksResponse response
 
index ebcc26078034484ba034c53f1bb5f21eeb60927c..f0364fe9aab6af9c042f91d5d06e12137a725410 100644 (file)
@@ -400,7 +400,6 @@ public:
     /// @param tuple reference of the tuple to read into
     /// @throw isc::dhcp::BadDataTypeCast when the data being read
     /// is truncated.
-    /// @return tuple being read.
     static void readTuple(const std::vector<uint8_t>& buf,
                           OpaqueDataTuple& tuple);
 
index 3934a432fd0a738ea1954c4a92b732301c993c9d..3436d2695b647f4e9466cdcd7de8991c4d967bcb 100644 (file)
@@ -516,8 +516,8 @@ public:
     /// Sets interface name over which packet was received or is
     /// going to be transmitted.
     ///
-    /// @return interface name
-    void setIface(const std::string& iface ) { iface_ = iface; };
+    /// @param iface The interface name
+    void setIface(const std::string& iface) { iface_ = iface; };
 
     /// @brief Sets remote hardware address.
     ///
index 1d7074b6185f53f2d173b5f8a2c3ea22be68e3d2..087623465f8753086b95385ab781a2d500a446a0 100644 (file)
@@ -1680,8 +1680,9 @@ Connection::receiveCallback(const uint64_t transid,
 
         // EAGAIN and EWOULDBLOCK don't indicate an error in this case. All
         // other errors should terminate the transaction.
-        } if ((ec.value() != boost::asio::error::try_again) &&
-              (ec.value() != boost::asio::error::would_block)) {
+        }
+        if ((ec.value() != boost::asio::error::try_again) &&
+            (ec.value() != boost::asio::error::would_block)) {
             terminate(ec);
             return;
 
index 9735e5ae8dfcd7019c6f0a9b5cd9a95b63adee79..f110f225cae2d25573a3b901980096e83585ec6d 100644 (file)
@@ -82,7 +82,6 @@ public:
     /// @brief Add a string to the vector of expected strings
     ///
     /// @param new_string the string to add to the end of the vector
-    /// @return void
     void addString(const string& new_string);
 
     vector<string> exp_strings_;
index da71b9cc7acef65a6fc2f89a40684051f180876d..414536422b2f9ff227a6c3b7574326a0187f042d 100644 (file)
@@ -93,7 +93,6 @@ protected:
     /// @param subnets The subnet list.
     /// @param set The reference to the set of assigned IDs.
     /// @param next The next ID.
-    /// @return True if all subnets have an ID, false otherwise.
     static void subnetsAssignID(isc::data::ConstElementPtr subnets,
                                 SubnetIDSet& set, isc::dhcp::SubnetID& next);
 
@@ -106,7 +105,6 @@ protected:
     /// @param set The reference to the set of assigned IDs.
     /// @param next The next ID.
     /// @param subsel The subnet list name.
-    /// @return True if all subnets have an ID, false otherwise.
     static void sharedNetworksAssignID(isc::data::ConstElementPtr networks,
                                        SubnetIDSet& set,
                                        isc::dhcp::SubnetID& next,