From: Razvan Becheriu Date: Fri, 6 Sep 2019 06:56:32 +0000 (+0300) Subject: minor changes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f937a8e0d3a206323f5e4619ddecc1391683e8bf;p=thirdparty%2Fkea.git minor changes --- diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index 1aacafdaa0..39903820de 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -775,8 +775,7 @@ Dhcpv4Srv::run() { if (run_multithreaded_) { // Creating the process packet thread pool // The number of thread pool's threads should be read from configuration - // file or it should be determined by the number of hardware threads and - // the number of Cassandra DB nodes. + // file or it should be determined by the number of hardware threads. pkt_thread_pool_.create(Dhcpv4Srv::threadCount()); } diff --git a/src/bin/dhcp4/dhcp4_srv.h b/src/bin/dhcp4/dhcp4_srv.h index 8b9748f7b8..3bd088c512 100644 --- a/src/bin/dhcp4/dhcp4_srv.h +++ b/src/bin/dhcp4/dhcp4_srv.h @@ -167,12 +167,16 @@ private: /// @brief Pointer to the allocation engine used by the server. AllocEnginePtr alloc_engine_; + /// @brief Pointer to the DHCPv4 message sent by the client. Pkt4Ptr query_; + /// @brief Pointer to the DHCPv4 message to be sent to the client. Pkt4Ptr resp_; + /// @brief Context for use with allocation engine. AllocEngine::ClientContext4Ptr context_; + /// @brief Configured option list. /// @note The configured option list is an *ordered* list of /// @c CfgOption objects used to append options to the response. @@ -615,7 +619,8 @@ protected: /// @param lease lease being assigned to the client /// @param subnet the subnet to which the lease belongs /// @param resp outbound response for the client to which timers are added. - static void setTeeTimes(const Lease4Ptr& lease, const Subnet4Ptr& subnet, Pkt4Ptr resp); + static void setTeeTimes(const Lease4Ptr& lease, const Subnet4Ptr& subnet, + Pkt4Ptr resp); /// @brief Append basic options if they are not present. /// @@ -1023,6 +1028,7 @@ protected: /// It must be a pointer, because we will support changing engines /// during normal operation (e.g. to use different allocators) boost::shared_ptr alloc_engine_; + /// @brief Holds information about disabled DHCP service and/or /// disabled subnet/network scopes. NetworkStatePtr network_state_; diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 116fe3cc76..49b7d14aed 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -451,8 +451,7 @@ bool Dhcpv6Srv::run() { if (run_multithreaded_) { // Creating the process packet thread pool // The number of thread pool's threads should be read from configuration - // file or it should be determined by the number of hardware threads and - // the number of Cassandra DB nodes. + // file or it should be determined by the number of hardware threads. pkt_thread_pool_.create(Dhcpv6Srv::threadCount()); } diff --git a/src/bin/dhcp6/dhcp6_srv.h b/src/bin/dhcp6/dhcp6_srv.h index 8828f39535..8c2765ec84 100644 --- a/src/bin/dhcp6/dhcp6_srv.h +++ b/src/bin/dhcp6/dhcp6_srv.h @@ -759,7 +759,8 @@ protected: /// @param preferred_lft preferred lease time of the lease being assigned to the client /// @param subnet the subnet to which the lease belongs /// @param resp outbound IA option in which the timers are set. - static void setTeeTimes(uint32_t preferred_lft, const Subnet6Ptr& subnet, Option6IAPtr& resp); + static void setTeeTimes(uint32_t preferred_lft, const Subnet6Ptr& subnet, + Option6IAPtr& resp); /// @brief Attempts to release received addresses /// @@ -916,9 +917,9 @@ public: /// @param ia specific IA_NA option to process. /// @param new_leases a collection of leases being declined. /// @return IA_NA option with response (to be included in Reply message) - OptionPtr - declineIA(const Pkt6Ptr& decline, const DuidPtr& duid, int& general_status, - boost::shared_ptr ia, Lease6Collection& new_leases); + OptionPtr declineIA(const Pkt6Ptr& decline, const DuidPtr& duid, + int& general_status, boost::shared_ptr ia, + Lease6Collection& new_leases); /// @brief Declines specific IPv6 lease. ///