mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-05 08:25:16 +00:00
[5564] Servers dump cached and parked packets on reconfig and shutdown
src/bin/dhcp4/dhcp4_srv.* - dumpPackets() - new function that frees all cached and parked packets - Dhcpv4Srv::~Dhcpv4Srv() - added call to dumpPackets() for cleanliness src/bin/dhcp4/json_config_parser.cc configureDhcp4Server() - added a call Dhcpv4Srv::dumpPackets() src/bin/dhcp6/dhcp6_srv.* - dumpPackets() - new function that frees all cached and parked packets - Dhcpv6Srv::~Dhcpv6Srv() - added call to dumpPackets() for cleanliness src/bin/dhcp6/json_config_parser.cc configureDhcp6Server() - added a call Dhcpv6Srv::dumpPackets() src/lib/hooks/hooks_manager.h - clearParkingLots() - new convenience function for clearing all parking lots - clearParkingLotsInternal() - private impl of the above
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <cc/command_interpreter.h>
|
||||
#include <dhcp4/dhcp4_log.h>
|
||||
#include <dhcp4/dhcp4_srv.h>
|
||||
#include <dhcp/libdhcp++.h>
|
||||
#include <dhcp/option_definition.h>
|
||||
#include <dhcpsrv/cfg_option.h>
|
||||
@@ -272,7 +273,7 @@ void configureCommandChannel() {
|
||||
}
|
||||
|
||||
isc::data::ConstElementPtr
|
||||
configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set,
|
||||
configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
|
||||
bool check_only) {
|
||||
if (!config_set) {
|
||||
ConstElementPtr answer = isc::config::createAnswer(1,
|
||||
@@ -290,6 +291,7 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set,
|
||||
// Remove any existing timers.
|
||||
if (!check_only) {
|
||||
TimerMgr::instance()->unregisterTimers();
|
||||
server.dumpPackets();
|
||||
}
|
||||
|
||||
// Revert any runtime option definitions configured so far and not committed.
|
||||
|
Reference in New Issue
Block a user