Kea: perfmon_config.cc Source File

| Kea 3.0.2-git

perfmon_config.cc
Go to the documentation of this file.
1// Copyright (C) 2024 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#include <config.h>
8
9#include <perfmon_config.h>
10#include <dhcp/dhcp6.h>
11#include <dhcp/pkt4.h>
12#include <dhcp/pkt6.h>
13
14using namespace isc;
15using namespace isc::data;
16using namespace isc::dhcp;
17using namespace boost::posix_time;
18
19namespace isc {
20namespace perfmon {
21
22const data::SimpleKeywords
23 DurationKeyParser::CONFIG_KEYWORDS =
24{
25 {"query-type", Element::string},
26 {"response-type", Element::string},
27 {"start-event", Element::string},
28 {"stop-event", Element::string},
29 {"subnet-id", Element::integer}
30};
31
32uint16_t
33DurationKeyParser::getMessageNameType4(const std::string& name) {
34 static std::map<std::string, uint16_t> name_type_map = {
35 {"", DHCP_NOTYPE},
36 {"*", DHCP_NOTYPE},
37 {"DHCPDISCOVER", DHCPDISCOVER},
38 {"DHCPOFFER", DHCPOFFER},
39 {"DHCPREQUEST", DHCPREQUEST},
40 {"DHCPDECLINE", DHCPDECLINE},
41 {"DHCPACK", DHCPACK},
42 {"DHCPNAK", DHCPNAK},
43 {"DHCPRELEASE", DHCPRELEASE},
44 {"DHCPINFORM", DHCPINFORM},
45 {"DHCPLEASEQUERY", DHCPLEASEQUERY},
46 {"DHCPLEASEUNASSIGNED", DHCPLEASEUNASSIGNED},
47 {"DHCPLEASEUNKNOWN", DHCPLEASEUNKNOWN},
48 {"DHCPLEASEACTIVE", DHCPLEASEACTIVE},
49 {"DHCPBULKLEASEQUERY", DHCPBULKLEASEQUERY},
50 {"DHCPLEASEQUERYDONE", DHCPLEASEQUERYDONE},
51 {"DHCPLEASEQUERYSTATUS", DHCPLEASEQUERYSTATUS},
52 {"DHCPTLS", DHCPTLS}
53 };
54
55 try {
56 const auto& found = name_type_map.at(name);
57 return (found);
58 } catch (const std::out_of_range& ex) {
59 isc_throw(BadValue, "'" << name << "' is not a valid DHCP message type");
60 }
61}
62
63uint16_t
64DurationKeyParser::getMessageNameType6(const std::string& name) {
65 static std::map<std::string, uint16_t> name_type_map = {
66 {"", DHCPV6_NOTYPE},
67 {"*", DHCPV6_NOTYPE},
68 {"SOLICIT", DHCPV6_SOLICIT},
69 {"ADVERTISE", DHCPV6_ADVERTISE},
70 {"REQUEST", DHCPV6_REQUEST},
71 {"CONFIRM", DHCPV6_CONFIRM},
72 {"RENEW", DHCPV6_RENEW},
73 {"REBIND", DHCPV6_REBIND},
74 {"REPLY", DHCPV6_REPLY},
75 {"RELEASE", DHCPV6_RELEASE},
76 {"DECLINE", DHCPV6_DECLINE},
77 {"RECONFIGURE", DHCPV6_RECONFIGURE},
78 {"INFORMATION_REQUEST", DHCPV6_INFORMATION_REQUEST},
79 {"RELAY_FORW", DHCPV6_RELAY_FORW},
80 {"RELAY_REPL", DHCPV6_RELAY_REPL},
81 {"LEASEQUERY", DHCPV6_LEASEQUERY},
82 {"LEASEQUERY_REPLY", DHCPV6_LEASEQUERY_REPLY},
83 {"LEASEQUERY_DONE", DHCPV6_LEASEQUERY_DONE},
84 {"LEASEQUERY_DATA", DHCPV6_LEASEQUERY_DATA},
85 {"RECONFIGURE_REQUEST", DHCPV6_RECONFIGURE_REQUEST},
86 {"RECONFIGURE_REPLY", DHCPV6_RECONFIGURE_REPLY},
87 {"DHCPV4_QUERY", DHCPV6_DHCPV4_QUERY},
88 {"DHCPV4_RESPONSE", DHCPV6_DHCPV4_RESPONSE},
89 {"ACTIVELEASEQUERY", DHCPV6_ACTIVELEASEQUERY},
90 {"STARTTLS", DHCPV6_STARTTLS},
91 {"BNDUPD", DHCPV6_BNDUPD},
92 {"BNDREPLY", DHCPV6_BNDREPLY},
93 {"POOLREQ", DHCPV6_POOLREQ},
94 {"POOLRESP", DHCPV6_POOLRESP},
95 {"UPDREQ", DHCPV6_UPDREQ},
96 {"UPDREQALL", DHCPV6_UPDREQALL},
97 {"UPDDONE", DHCPV6_UPDDONE},
98 {"CONNECT", DHCPV6_CONNECT},
99 {"CONNECTREPLY", DHCPV6_CONNECTREPLY},
100 {"DISCONNECT", DHCPV6_DISCONNECT},
101 {"STATE", DHCPV6_STATE},
102 {"CONTACT", DHCPV6_CONTACT}
103 };
104
105 try {
106 const auto& found = name_type_map.at(name);
107 return (found);
108 } catch (const std::out_of_range& ex) {
109 isc_throw(BadValue, "'" << name << "' is not a valid DHCPV6 message type");
110 }
111}
112
113uint16_t
114DurationKeyParser::getMessageType(data::ConstElementPtr config,
115 uint16_t family,
116 const std::string& param_name,
117 bool required /*= true */) {
118 // Parse members.
119 uint16_t msg_type = 0;
120 ConstElementPtr elem = config->get(param_name);
121 if (elem) {
122 try {
123 msg_type = (family == AF_INET ? getMessageNameType4(elem->stringValue())
124 : getMessageNameType6(elem->stringValue()));
125 } catch (const std::exception& ex) {
126 isc_throw(DhcpConfigError, "'" << param_name << "' parameter is invalid, " << ex.what());
127 }
128 } else {
129 if (required) {
130 isc_throw(DhcpConfigError, "'" << param_name << "' parameter is required");
131 }
132 }
133
134 return (msg_type);
135}
136
137 DurationKeyPtr
138DurationKeyParser::parse(data::ConstElementPtr config, uint16_t family) {
139 // Note checkKeywords() will throw DhcpConfigError if there is a problem.
140 SimpleParser::checkKeywords(CONFIG_KEYWORDS, config);
141
142 // Parse members.
143 auto query_type = getMessageType(config, family, "query-type");
144
145 auto response_type = getMessageType(config, family, "response-type");
146
147 std::string start_event;
148 ConstElementPtr elem = config->get("start-event");
149 if (elem) {
150 start_event = elem->stringValue();
151 } else {
152 isc_throw(DhcpConfigError, "'start-event' parameter is required");
153 }
154
155 std::string stop_event;
156 elem = config->get("stop-event");
157 if (elem) {
158 stop_event = elem->stringValue();
159 } else {
160 isc_throw(DhcpConfigError, "'stop-event' parameter is required");
161 }
162
163 SubnetID subnet_id = SUBNET_ID_GLOBAL;
164 elem = config->get("subnet-id");
165 if (elem) {
166 subnet_id = static_cast<SubnetID>(elem->intValue());
167 }
168
169 return (DurationKeyPtr(new DurationKey(family, query_type, response_type,
170 start_event, stop_event, subnet_id)));
171}
172
173 data::ElementPtr
174DurationKeyParser::toElement(DurationKeyPtr key) {
175 if (!key) {
176 isc_throw(BadValue, "DurationKeyParser::toElement() - key is empty");
177 }
178
179 ElementPtr map = Element::createMap();
180 if (key->getFamily() == AF_INET) {
181 map->set("query-type", Element::create(Pkt4::getName(key->getQueryType())));
182 map->set("response-type", Element::create(Pkt4::getName(key->getResponseType())));
183 } else {
184 map->set("query-type", Element::create(Pkt6::getName(key->getQueryType())));
185 map->set("response-type", Element::create(Pkt6::getName(key->getResponseType())));
186 }
187
188 map->set("start-event", Element::create(key->getStartEventLabel()));
189 map->set("stop-event", Element::create(key->getStopEventLabel()));
190 map->set("subnet-id", Element::create(static_cast<long long>(key->getSubnetId())));
191 return (map);
192}
193
194const data::SimpleKeywords
195 AlarmParser::CONFIG_KEYWORDS =
196{
197 {"duration-key", Element::map},
198 {"enable-alarm", Element::boolean},
199 {"high-water-ms", Element::integer},
200 {"low-water-ms", Element::integer}
201};
202
203 AlarmPtr
204AlarmParser::parse(data::ConstElementPtr config, uint16_t family) {
205 // Note checkKeywords() will throw DhcpConfigError if there is a problem.
206 SimpleParser::checkKeywords(CONFIG_KEYWORDS, config);
207
208 // First parse the duration-key.
209 ConstElementPtr elem = config->get("duration-key");
210 if (!elem) {
211 isc_throw(DhcpConfigError, "'duration-key'" <<" parameter is required");
212 }
213
214 DurationKeyPtr key = DurationKeyParser::parse(elem, family);
215
216 // Parse scalar members.
217 elem = config->get("enable-alarm");
218 bool enable_alarm = (elem ? elem->boolValue() : true);
219
220 elem = config->get("high-water-ms");
221 uint64_t high_water_ms = 0;
222 if (elem) {
223 int64_t value = elem->intValue();
224 if (value <= 0) {
225 isc_throw(DhcpConfigError, "high-water-ms: '"
226 << value << "', must be greater than 0");
227 }
228
229 high_water_ms = value;
230 } else {
231 isc_throw(DhcpConfigError, "'high-water-ms'" <<" parameter is required");
232 }
233
234 elem = config->get("low-water-ms");
235 uint64_t low_water_ms = 0;
236 if (elem) {
237 int64_t value = elem->intValue();
238 if (value <= 0) {
239 isc_throw(DhcpConfigError, "low-water-ms: '"
240 << value << "', must be greater than 0");
241 }
242
243 low_water_ms = value;
244 } else {
245 isc_throw(DhcpConfigError, "'low-water-ms'" <<" parameter is required");
246 }
247
248 if (low_water_ms >= high_water_ms) {
249 isc_throw(DhcpConfigError, "'low-water-ms': " << low_water_ms
250 << ", must be less than 'high-water-ms': " << high_water_ms);
251 }
252
253 return (AlarmPtr(new Alarm(*key, milliseconds(low_water_ms),
254 milliseconds(high_water_ms), enable_alarm)));
255}
256
257const data::SimpleKeywords
258 PerfMonConfig::CONFIG_KEYWORDS =
259{
260 {"enable-monitoring", Element::boolean},
261 {"interval-width-secs", Element::integer},
262 {"stats-mgr-reporting", Element::boolean},
263 {"alarm-report-secs", Element::integer},
264 {"alarms", Element::list}
265};
266
267PerfMonConfig::PerfMonConfig(uint16_t family)
268 : family_(family),
269 enable_monitoring_(false),
270 interval_width_secs_(60),
271 stats_mgr_reporting_(true),
272 alarm_report_secs_(300) {
273 if (family_ != AF_INET && family_ != AF_INET6) {
274 isc_throw (BadValue, "PerfmonConfig: family must be AF_INET or AF_INET6");
275 }
276
277 alarm_store_.reset(new AlarmStore(family_));
278}
279
280void
281PerfMonConfig::parse(data::ConstElementPtr config) {
282 // Use a local instance to collect values. This way we
283 // avoid corrupting current values if there are any errors.
284 PerfMonConfig local(family_);
285
286 // Note checkKeywords() will throw DhcpConfigError if there is a problem.
287 SimpleParser::checkKeywords(CONFIG_KEYWORDS, config);
288
289 // Parse members.
290 ConstElementPtr elem = config->get("enable-monitoring");
291 if (elem) {
292 local.setEnableMonitoring(elem->boolValue());
293 }
294
295 elem = config->get("interval-width-secs");
296 if (elem) {
297 int64_t value = elem->intValue();
298 if (value <= 0) {
299 isc_throw(DhcpConfigError, "invalid interval-width-secs: '"
300 << value << "', must be greater than 0");
301 }
302
303 local.setIntervalWidthSecs(value);
304 }
305
306 elem = config->get("stats-mgr-reporting");
307 if (elem) {
308 local.setStatsMgrReporting(elem->boolValue());
309 }
310
311 elem = config->get("alarm-report-secs");
312 if (elem) {
313 int64_t value = elem->intValue();
314 if (value < 0) {
315 isc_throw(DhcpConfigError, "invalid alarm-report-secs: '"
316 << value << "', cannot be less than 0");
317 }
318
319 local.setAlarmReportSecs(value);
320 }
321
322 elem = config->get("alarms");
323 if (elem) {
324 local.parseAlarms(elem);
325 }
326
327 // All values good, copy them from local instance.
328 family_= local.getFamily();
329 enable_monitoring_ = local.getEnableMonitoring();
330 interval_width_secs_ = local.getIntervalWidthSecs();
331 stats_mgr_reporting_ = local.getStatsMgrReporting();
332 alarm_report_secs_ = local.getAlarmReportSecs();
333 alarm_store_= local.getAlarmStore();
334}
335
336void
337PerfMonConfig::parseAlarms(data::ConstElementPtr config) {
338 alarm_store_.reset(new AlarmStore(family_));
339 for (auto const& alarm_elem : config->listValue()) {
340 try {
341 AlarmPtr alarm = AlarmParser::parse(alarm_elem, family_);
342 alarm_store_->addAlarm(alarm);
343 } catch (const std::exception& ex) {
344 isc_throw(DhcpConfigError, "cannot add Alarm to store: " << ex.what());
345 }
346 }
347}
348
349} // end of namespace perfmon
350} // end of namespace isc
Element::integer
@ integer
Definition data.h:140
Element::boolean
@ boolean
Definition data.h:142
isc::BadValue
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
Definition exceptions/exceptions.h:132
isc::data::Element::create
static ElementPtr create(const Position &pos=ZERO_POSITION())
Definition data.cc:249
isc::data::Element::map
@ map
Definition data.h:147
isc::data::Element::integer
@ integer
Definition data.h:140
isc::data::Element::boolean
@ boolean
Definition data.h:142
isc::data::Element::list
@ list
Definition data.h:146
isc::data::Element::string
@ string
Definition data.h:144
isc::data::Element::createMap
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
Definition data.cc:304
isc::data::SimpleParser::checkKeywords
static void checkKeywords(const SimpleKeywords &keywords, isc::data::ConstElementPtr scope)
Checks acceptable keywords with their expected type.
Definition lib/cc/simple_parser.cc:35
isc::dhcp::DhcpConfigError
To be removed. Please use ConfigError instead.
Definition dhcp_config_error.h:58
isc::dhcp::Pkt4::getName
static const char * getName(const uint8_t type)
Returns name of the DHCP message for a given type number.
Definition pkt4.cc:282
isc::dhcp::Pkt6::getName
static const char * getName(const uint8_t type)
Returns name of the DHCPv6 message for a given type number.
Definition pkt6.cc:784
isc::perfmon::AlarmParser::CONFIG_KEYWORDS
static const data::SimpleKeywords CONFIG_KEYWORDS
List of valid parameters and expected types.
Definition perfmon_config.h:118
isc::perfmon::AlarmParser::parse
static AlarmPtr parse(data::ConstElementPtr config, uint16_t family)
Definition perfmon_config.cc:204
isc::perfmon::AlarmStore
Maintains an in-memory store of alarms.
Definition alarm_store.h:74
isc::perfmon::Alarm
Defines an alarm for a duration.
Definition alarm.h:20
isc::perfmon::DurationKeyParser::getMessageType
static uint16_t getMessageType(data::ConstElementPtr config, uint16_t family, const std::string &param_name, bool required=true)
Convert a configuration parameter to family-specific message type.
Definition perfmon_config.cc:114
isc::perfmon::DurationKeyParser::CONFIG_KEYWORDS
static const data::SimpleKeywords CONFIG_KEYWORDS
List of valid parameters and expected types.
Definition perfmon_config.h:60
isc::perfmon::DurationKeyParser::toElement
static data::ElementPtr toElement(DurationKeyPtr key)
Convert a DurationKey into a map of Elements.
Definition perfmon_config.cc:174
isc::perfmon::DurationKeyParser::getMessageNameType6
static uint16_t getMessageNameType6(const std::string &name)
Convert string message name to DHCP6 message type.
Definition perfmon_config.cc:64
isc::perfmon::DurationKeyParser::parse
static DurationKeyPtr parse(data::ConstElementPtr config, uint16_t family)
Convert a map of Elements into a DurationKey.
Definition perfmon_config.cc:138
isc::perfmon::DurationKeyParser::getMessageNameType4
static uint16_t getMessageNameType4(const std::string &name)
Convert string message name to DHCP message type.
Definition perfmon_config.cc:33
isc::perfmon::DurationKey
Houses the composite key that uniquely identifies a duration:
Definition monitored_duration.h:134
isc::perfmon::PerfMonConfig::PerfMonConfig
PerfMonConfig(uint16_t family)
Constructor.
Definition perfmon_config.cc:267
isc::perfmon::PerfMonConfig::interval_width_secs_
uint32_t interval_width_secs_
Number of seconds a duration accumulates samples until reporting.
Definition perfmon_config.h:247
isc::perfmon::PerfMonConfig::alarm_report_secs_
uint32_t alarm_report_secs_
Number of seconds between reports of a raised alarm.
Definition perfmon_config.h:255
isc::perfmon::PerfMonConfig::parseAlarms
void parseAlarms(data::ConstElementPtr config)
Re-creates the AlarmStore and populates it by parsing a list of alarm elements.
Definition perfmon_config.cc:337
isc::perfmon::PerfMonConfig::family_
uint16_t family_
Protocol family AF_INET or AF_INET6.
Definition perfmon_config.h:237
isc::perfmon::PerfMonConfig::parse
void parse(data::ConstElementPtr config)
Extracts member values from an Element::map.
Definition perfmon_config.cc:281
isc::perfmon::PerfMonConfig::alarm_store_
AlarmStorePtr alarm_store_
Stores the configured alarms.
Definition perfmon_config.h:258
isc::perfmon::PerfMonConfig::stats_mgr_reporting_
std::atomic< bool > stats_mgr_reporting_
If true durations report to StatsMgr at the end of each interval.
Definition perfmon_config.h:251
isc::perfmon::PerfMonConfig::CONFIG_KEYWORDS
static const data::SimpleKeywords CONFIG_KEYWORDS
List of valid parameters and expected types.
Definition perfmon_config.h:138
isc::perfmon::PerfMonConfig::enable_monitoring_
std::atomic< bool > enable_monitoring_
If true, performance data is processed/reported.
Definition perfmon_config.h:243
dhcp6.h
DHCPV6_ADVERTISE
@ DHCPV6_ADVERTISE
Definition dhcp6.h:209
DHCPV6_CONNECTREPLY
@ DHCPV6_CONNECTREPLY
Definition dhcp6.h:245
DHCPV6_CONTACT
@ DHCPV6_CONTACT
Definition dhcp6.h:248
DHCPV6_UPDREQ
@ DHCPV6_UPDREQ
Definition dhcp6.h:241
DHCPV6_LEASEQUERY
@ DHCPV6_LEASEQUERY
Definition dhcp6.h:222
DHCPV6_REQUEST
@ DHCPV6_REQUEST
Definition dhcp6.h:210
DHCPV6_UPDDONE
@ DHCPV6_UPDDONE
Definition dhcp6.h:243
DHCPV6_RELAY_REPL
@ DHCPV6_RELAY_REPL
Definition dhcp6.h:220
DHCPV6_RENEW
@ DHCPV6_RENEW
Definition dhcp6.h:212
DHCPV6_RECONFIGURE_REPLY
@ DHCPV6_RECONFIGURE_REPLY
Definition dhcp6.h:229
DHCPV6_DHCPV4_QUERY
@ DHCPV6_DHCPV4_QUERY
Definition dhcp6.h:231
DHCPV6_DHCPV4_RESPONSE
@ DHCPV6_DHCPV4_RESPONSE
Definition dhcp6.h:232
DHCPV6_BNDUPD
@ DHCPV6_BNDUPD
Definition dhcp6.h:237
DHCPV6_RECONFIGURE
@ DHCPV6_RECONFIGURE
Definition dhcp6.h:217
DHCPV6_ACTIVELEASEQUERY
@ DHCPV6_ACTIVELEASEQUERY
Definition dhcp6.h:234
DHCPV6_STARTTLS
@ DHCPV6_STARTTLS
Definition dhcp6.h:235
DHCPV6_REBIND
@ DHCPV6_REBIND
Definition dhcp6.h:213
DHCPV6_DISCONNECT
@ DHCPV6_DISCONNECT
Definition dhcp6.h:246
DHCPV6_REPLY
@ DHCPV6_REPLY
Definition dhcp6.h:214
DHCPV6_POOLREQ
@ DHCPV6_POOLREQ
Definition dhcp6.h:239
DHCPV6_SOLICIT
@ DHCPV6_SOLICIT
Definition dhcp6.h:208
DHCPV6_RELEASE
@ DHCPV6_RELEASE
Definition dhcp6.h:215
DHCPV6_LEASEQUERY_DATA
@ DHCPV6_LEASEQUERY_DATA
Definition dhcp6.h:226
DHCPV6_INFORMATION_REQUEST
@ DHCPV6_INFORMATION_REQUEST
Definition dhcp6.h:218
DHCPV6_BNDREPLY
@ DHCPV6_BNDREPLY
Definition dhcp6.h:238
DHCPV6_CONNECT
@ DHCPV6_CONNECT
Definition dhcp6.h:244
DHCPV6_STATE
@ DHCPV6_STATE
Definition dhcp6.h:247
DHCPV6_CONFIRM
@ DHCPV6_CONFIRM
Definition dhcp6.h:211
DHCPV6_RECONFIGURE_REQUEST
@ DHCPV6_RECONFIGURE_REQUEST
Definition dhcp6.h:228
DHCPV6_LEASEQUERY_DONE
@ DHCPV6_LEASEQUERY_DONE
Definition dhcp6.h:225
DHCPV6_LEASEQUERY_REPLY
@ DHCPV6_LEASEQUERY_REPLY
Definition dhcp6.h:223
DHCPV6_RELAY_FORW
@ DHCPV6_RELAY_FORW
Definition dhcp6.h:219
DHCPV6_POOLRESP
@ DHCPV6_POOLRESP
Definition dhcp6.h:240
DHCPV6_DECLINE
@ DHCPV6_DECLINE
Definition dhcp6.h:216
DHCPV6_UPDREQALL
@ DHCPV6_UPDREQALL
Definition dhcp6.h:242
DHCPV6_NOTYPE
@ DHCPV6_NOTYPE
Definition dhcp6.h:207
isc_throw
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
Definition exceptions/exceptions.h:210
isc::config
Definition command_interpreter.cc:23
isc::data
Definition base_stamped_element.cc:12
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
isc::data::ElementPtr
boost::shared_ptr< Element > ElementPtr
Definition data.h:28
isc::data::SimpleKeywords
std::map< std::string, isc::data::Element::types > SimpleKeywords
This specifies all accepted keywords with their types.
Definition lib/cc/simple_parser.h:36
isc::dhcp
Definition dhcp4/client_handler.cc:20
isc::dhcp::SubnetID
uint32_t SubnetID
Defines unique IPv4 or IPv6 subnet identifier.
Definition subnet_id.h:25
isc::dhcp::DHCPLEASEQUERYSTATUS
@ DHCPLEASEQUERYSTATUS
Definition dhcp4.h:251
isc::dhcp::DHCPTLS
@ DHCPTLS
Definition dhcp4.h:252
isc::dhcp::DHCPREQUEST
@ DHCPREQUEST
Definition dhcp4.h:237
isc::dhcp::DHCPLEASEQUERYDONE
@ DHCPLEASEQUERYDONE
Definition dhcp4.h:249
isc::dhcp::DHCPLEASEUNKNOWN
@ DHCPLEASEUNKNOWN
Definition dhcp4.h:246
isc::dhcp::DHCPOFFER
@ DHCPOFFER
Definition dhcp4.h:236
isc::dhcp::DHCPLEASEACTIVE
@ DHCPLEASEACTIVE
Definition dhcp4.h:247
isc::dhcp::DHCPLEASEQUERY
@ DHCPLEASEQUERY
Definition dhcp4.h:244
isc::dhcp::DHCPDECLINE
@ DHCPDECLINE
Definition dhcp4.h:238
isc::dhcp::DHCPNAK
@ DHCPNAK
Definition dhcp4.h:240
isc::dhcp::DHCPRELEASE
@ DHCPRELEASE
Definition dhcp4.h:241
isc::dhcp::DHCPLEASEUNASSIGNED
@ DHCPLEASEUNASSIGNED
Definition dhcp4.h:245
isc::dhcp::DHCPDISCOVER
@ DHCPDISCOVER
Definition dhcp4.h:235
isc::dhcp::DHCPBULKLEASEQUERY
@ DHCPBULKLEASEQUERY
Definition dhcp4.h:248
isc::dhcp::DHCP_NOTYPE
@ DHCP_NOTYPE
Message Type option missing.
Definition dhcp4.h:234
isc::dhcp::DHCPINFORM
@ DHCPINFORM
Definition dhcp4.h:242
isc::dhcp::DHCPACK
@ DHCPACK
Definition dhcp4.h:239
isc::perfmon
Definition alarm.cc:19
isc::perfmon::DurationKeyPtr
boost::shared_ptr< DurationKey > DurationKeyPtr
Defines a pointer to a DurationKey instance.
Definition monitored_duration.h:321
isc::perfmon::AlarmPtr
boost::shared_ptr< Alarm > AlarmPtr
Defines a pointer to an Alarm instance.
Definition alarm.h:168
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148
perfmon_config.h
The classes herein parse PerfMon hook library's 'parameters' element depicted below:
pkt4.h
pkt6.h