mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[#2475] addressed review
This commit is contained in:
@@ -32,12 +32,12 @@ command.
|
|||||||
- @b Description: this callout is executed when Control Agent receives a
|
- @b Description: this callout is executed when Control Agent receives a
|
||||||
control command over the RESTful interface (HTTP).
|
control command over the RESTful interface (HTTP).
|
||||||
The "request" argument is a pointer to the request, in fact a
|
The "request" argument is a pointer to the request, in fact a
|
||||||
PostHttpRequestJsonPtr. The "response" argument is the response in
|
PostHttpRequestJsonPtr. The "response" argument is the response in case
|
||||||
case of errors. The purpose of this callout is to implement authentication
|
of errors. The purpose of this callout is to implement authentication
|
||||||
and authorization. It is called after basic HTTP 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 next step status is used only to ask to reset the handle: if the
|
||||||
the response is set the processing will stop and the response is
|
response is set the processing will stop and the response is returned.
|
||||||
returned. In particular the command is not forwarded.
|
In particular the command is not forwarded.
|
||||||
|
|
||||||
@subsection agentHooksResponse response
|
@subsection agentHooksResponse response
|
||||||
|
|
||||||
|
@@ -400,7 +400,6 @@ public:
|
|||||||
/// @param tuple reference of the tuple to read into
|
/// @param tuple reference of the tuple to read into
|
||||||
/// @throw isc::dhcp::BadDataTypeCast when the data being read
|
/// @throw isc::dhcp::BadDataTypeCast when the data being read
|
||||||
/// is truncated.
|
/// is truncated.
|
||||||
/// @return tuple being read.
|
|
||||||
static void readTuple(const std::vector<uint8_t>& buf,
|
static void readTuple(const std::vector<uint8_t>& buf,
|
||||||
OpaqueDataTuple& tuple);
|
OpaqueDataTuple& tuple);
|
||||||
|
|
||||||
|
@@ -516,8 +516,8 @@ public:
|
|||||||
/// Sets interface name over which packet was received or is
|
/// Sets interface name over which packet was received or is
|
||||||
/// going to be transmitted.
|
/// going to be transmitted.
|
||||||
///
|
///
|
||||||
/// @return interface name
|
/// @param iface The interface name
|
||||||
void setIface(const std::string& iface ) { iface_ = iface; };
|
void setIface(const std::string& iface) { iface_ = iface; };
|
||||||
|
|
||||||
/// @brief Sets remote hardware address.
|
/// @brief Sets remote hardware address.
|
||||||
///
|
///
|
||||||
|
@@ -1680,8 +1680,9 @@ Connection::receiveCallback(const uint64_t transid,
|
|||||||
|
|
||||||
// EAGAIN and EWOULDBLOCK don't indicate an error in this case. All
|
// EAGAIN and EWOULDBLOCK don't indicate an error in this case. All
|
||||||
// other errors should terminate the transaction.
|
// 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);
|
terminate(ec);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@@ -82,7 +82,6 @@ public:
|
|||||||
/// @brief Add a string to the vector of expected strings
|
/// @brief Add a string to the vector of expected strings
|
||||||
///
|
///
|
||||||
/// @param new_string the string to add to the end of the vector
|
/// @param new_string the string to add to the end of the vector
|
||||||
/// @return void
|
|
||||||
void addString(const string& new_string);
|
void addString(const string& new_string);
|
||||||
|
|
||||||
vector<string> exp_strings_;
|
vector<string> exp_strings_;
|
||||||
|
@@ -93,7 +93,6 @@ protected:
|
|||||||
/// @param subnets The subnet list.
|
/// @param subnets The subnet list.
|
||||||
/// @param set The reference to the set of assigned IDs.
|
/// @param set The reference to the set of assigned IDs.
|
||||||
/// @param next The next ID.
|
/// @param next The next ID.
|
||||||
/// @return True if all subnets have an ID, false otherwise.
|
|
||||||
static void subnetsAssignID(isc::data::ConstElementPtr subnets,
|
static void subnetsAssignID(isc::data::ConstElementPtr subnets,
|
||||||
SubnetIDSet& set, isc::dhcp::SubnetID& next);
|
SubnetIDSet& set, isc::dhcp::SubnetID& next);
|
||||||
|
|
||||||
@@ -106,7 +105,6 @@ protected:
|
|||||||
/// @param set The reference to the set of assigned IDs.
|
/// @param set The reference to the set of assigned IDs.
|
||||||
/// @param next The next ID.
|
/// @param next The next ID.
|
||||||
/// @param subsel The subnet list name.
|
/// @param subsel The subnet list name.
|
||||||
/// @return True if all subnets have an ID, false otherwise.
|
|
||||||
static void sharedNetworksAssignID(isc::data::ConstElementPtr networks,
|
static void sharedNetworksAssignID(isc::data::ConstElementPtr networks,
|
||||||
SubnetIDSet& set,
|
SubnetIDSet& set,
|
||||||
isc::dhcp::SubnetID& next,
|
isc::dhcp::SubnetID& next,
|
||||||
|
Reference in New Issue
Block a user