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());
}
/// @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.
/// @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.
///
/// It must be a pointer, because we will support changing engines
/// during normal operation (e.g. to use different allocators)
boost::shared_ptr<AllocEngine> alloc_engine_;
+
/// @brief Holds information about disabled DHCP service and/or
/// disabled subnet/network scopes.
NetworkStatePtr network_state_;
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());
}
/// @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
///
/// @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<Option6IA> ia, Lease6Collection& new_leases);
+ OptionPtr declineIA(const Pkt6Ptr& decline, const DuidPtr& duid,
+ int& general_status, boost::shared_ptr<Option6IA> ia,
+ Lease6Collection& new_leases);
/// @brief Declines specific IPv6 lease.
///