Kea 2.5.9
cfg_subnets6.cc
Go to the documentation of this file.
1// Copyright (C) 2014-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#include <dhcp/dhcp6.h>
12#include <dhcpsrv/dhcpsrv_log.h>
14#include <dhcpsrv/subnet_id.h>
15#include <stats/stats_mgr.h>
16#include <boost/range/adaptor/reversed.hpp>
17#include <string.h>
18#include <sstream>
19
20using namespace isc::asiolink;
21using namespace isc::data;
22
23using namespace std;
24
25namespace isc {
26namespace dhcp {
27
28void
30 if (getBySubnetId(subnet->getID())) {
31 isc_throw(isc::dhcp::DuplicateSubnetID, "ID of the new IPv6 subnet '"
32 << subnet->getID() << "' is already in use");
33
34 } else if (getByPrefix(subnet->toText())) {
37 isc_throw(isc::dhcp::DuplicateSubnetID, "subnet with the prefix of '"
38 << subnet->toText() << "' already exists");
39 }
40
42 .arg(subnet->toText());
43 static_cast<void>(subnets_.insert(subnet));
44}
45
48 // Get the subnet with the same ID.
49 const SubnetID& subnet_id = subnet->getID();
50 auto& index = subnets_.template get<SubnetSubnetIdIndexTag>();
51 auto subnet_it = index.find(subnet_id);
52 if (subnet_it == index.end()) {
53 isc_throw(BadValue, "There is no IPv6 subnet with ID " << subnet_id);
54 }
55 Subnet6Ptr old = *subnet_it;
56 bool ret = index.replace(subnet_it, subnet);
57
59 .arg(subnet_id).arg(ret);
60 if (ret) {
61 return (old);
62 } else {
63 return (Subnet6Ptr());
64 }
65}
66
67void
69 del(subnet->getID());
70}
71
72void
73CfgSubnets6::del(const SubnetID& subnet_id) {
74 auto& index = subnets_.get<SubnetSubnetIdIndexTag>();
75 auto subnet_it = index.find(subnet_id);
76 if (subnet_it == index.end()) {
77 isc_throw(BadValue, "no subnet with ID of '" << subnet_id
78 << "' found");
79 }
80
81 Subnet6Ptr subnet = *subnet_it;
82
83 index.erase(subnet_it);
84
86 .arg(subnet->toText());
87}
88
89void
91 CfgSubnets6& other) {
92 auto& index_id = subnets_.get<SubnetSubnetIdIndexTag>();
93 auto& index_prefix = subnets_.get<SubnetPrefixIndexTag>();
94
95 // Iterate over the subnets to be merged. They will replace the existing
96 // subnets with the same id. All new subnets will be inserted into the
97 // configuration into which we're merging.
98 auto const& other_subnets = other.getAll();
99 for (auto const& other_subnet : *other_subnets) {
100
101 // Check if there is a subnet with the same ID.
102 auto subnet_it = index_id.find(other_subnet->getID());
103 if (subnet_it != index_id.end()) {
104
105 // Subnet found.
106 auto existing_subnet = *subnet_it;
107
108 // If the existing subnet and other subnet
109 // are the same instance skip it.
110 if (existing_subnet == other_subnet) {
111 continue;
112 }
113
114 // We're going to replace the existing subnet with the other
115 // version. If it belongs to a shared network, we need
116 // remove it from that network.
117 SharedNetwork6Ptr network;
118 existing_subnet->getSharedNetwork(network);
119 if (network) {
120 network->del(existing_subnet->getID());
121 }
122
123 // Now we remove the existing subnet.
124 index_id.erase(subnet_it);
125 }
126
127 // Check if there is a subnet with the same prefix.
128 auto subnet_prefix_it = index_prefix.find(other_subnet->toText());
129 if (subnet_prefix_it != index_prefix.end()) {
130
131 // Subnet found.
132 auto existing_subnet = *subnet_prefix_it;
133
134 // Updating the id can lead to problems... e.g. reservation
135 // for the previous subnet ID.
136 // @todo: check reservations
137
138 // We're going to replace the existing subnet with the other
139 // version. If it belongs to a shared network, we need
140 // remove it from that network.
141 SharedNetwork6Ptr network;
142 existing_subnet->getSharedNetwork(network);
143 if (network) {
144 network->del(existing_subnet->getID());
145 }
146
147 // Now we remove the existing subnet.
148 index_prefix.erase(subnet_prefix_it);
149 }
150
151 // Create the subnet's options based on the given definitions.
152 other_subnet->getCfgOption()->createOptions(cfg_def);
153
154 // Create the options for pool based on the given definitions.
155 for (auto const& pool : other_subnet->getPoolsWritable(Lease::TYPE_NA)) {
156 pool->getCfgOption()->createOptions(cfg_def);
157 }
158
159 // Create the options for pd pool based on the given definitions.
160 for (auto const& pool : other_subnet->getPoolsWritable(Lease::TYPE_PD)) {
161 pool->getCfgOption()->createOptions(cfg_def);
162 }
163
164 // Add the "other" subnet to the our collection of subnets.
165 static_cast<void>(subnets_.insert(other_subnet));
166
167 // If it belongs to a shared network, find the network and
168 // add the subnet to it
169 std::string network_name = other_subnet->getSharedNetworkName();
170 if (!network_name.empty()) {
171 SharedNetwork6Ptr network = networks->getByName(network_name);
172 if (network) {
173 network->add(other_subnet);
174 } else {
175 // This implies the shared-network collection we were given
176 // is out of sync with the subnets we were given.
177 isc_throw(InvalidOperation, "Cannot assign subnet ID of "
178 << other_subnet->getID()
179 << " to shared network: " << network_name
180 << ", network does not exist");
181 }
182 }
183 // Instantiate the configured allocators and their states.
184 other_subnet->createAllocators();
185 }
186}
187
189CfgSubnets6::getByPrefix(const std::string& subnet_text) const {
190 auto const& index = subnets_.get<SubnetPrefixIndexTag>();
191 auto subnet_it = index.find(subnet_text);
192 return ((subnet_it != index.cend()) ? (*subnet_it) : ConstSubnet6Ptr());
193}
194
197 // Initialize subnet selector with the values used to select the subnet.
198 SubnetSelector selector;
199 selector.iface_name_ = query->getIface();
200 selector.remote_address_ = query->getRemoteAddr();
201 selector.first_relay_linkaddr_ = IOAddress("::");
202 selector.client_classes_ = query->classes_;
203
204 // Initialize fields specific to relayed messages.
205 if (!query->relay_info_.empty()) {
206 for (auto const& relay : boost::adaptors::reverse(query->relay_info_)) {
207 if (!relay.linkaddr_.isV6Zero() &&
208 !relay.linkaddr_.isV6LinkLocal()) {
209 selector.first_relay_linkaddr_ = relay.linkaddr_;
210 break;
211 }
212 }
213 selector.interface_id_ =
214 query->getAnyRelayOption(D6O_INTERFACE_ID,
216 }
217
218 return (selector);
219}
220
223 Subnet6Ptr subnet;
224
225 // If relay agent link address is set to zero it means that we're dealing
226 // with a directly connected client.
227 if (selector.first_relay_linkaddr_ == IOAddress("::")) {
228 // If interface name is known try to match it with interface names
229 // specified for configured subnets.
230 if (!selector.iface_name_.empty()) {
231 subnet = selectSubnet(selector.iface_name_,
232 selector.client_classes_);
233 }
234
235 // If interface name didn't match, try the client's address.
236 if (!subnet && selector.remote_address_ != IOAddress("::")) {
237 subnet = selectSubnet(selector.remote_address_,
238 selector.client_classes_);
239 }
240
241 // If relay agent link address is set, we're dealing with a relayed message.
242 } else {
243 // Find the subnet using the Interface Id option, if present.
244 subnet = selectSubnet(selector.interface_id_, selector.client_classes_);
245
246 // If Interface ID option could not be matched for any subnet, try
247 // the relay agent link address.
248 if (!subnet) {
249 subnet = selectSubnet(selector.first_relay_linkaddr_,
250 selector.client_classes_,
251 true);
252 }
253 }
254
255 // Return subnet found, or NULL if not found.
256 return (subnet);
257}
258
261 const ClientClasses& client_classes,
262 const bool is_relay_address) const {
263 // If the specified address is a relay address we first need to match
264 // it with the relay addresses specified for all subnets.
265 if (is_relay_address) {
266 for (auto const& subnet : subnets_) {
267
268 // If the specified address matches a relay address, return this
269 // subnet.
270 if (subnet->hasRelays()) {
271 if (!subnet->hasRelayAddress(address)) {
272 continue;
273 }
274
275 } else {
276 SharedNetwork6Ptr network;
277 subnet->getSharedNetwork(network);
278 if (!network || !network->hasRelayAddress(address)) {
279 continue;
280 }
281 }
282
283 if (subnet->clientSupported(client_classes)) {
284 // The relay address is matching the one specified for a subnet
285 // or its shared network.
288 .arg(subnet->toText()).arg(address.toText());
289 return (subnet);
290 }
291 }
292 }
293
294 // No success so far. Check if the specified address is in range
295 // with any subnet.
296 for (auto const& subnet : subnets_) {
297 if (subnet->inRange(address) && subnet->clientSupported(client_classes)) {
299 .arg(subnet->toText()).arg(address.toText());
300 return (subnet);
301 }
302 }
303
306 .arg(address.toText());
307
308 // Nothing found.
309 return (Subnet6Ptr());
310}
311
313CfgSubnets6::selectSubnet(const std::string& iface_name,
314 const ClientClasses& client_classes) const {
315 // If empty interface specified, we can't select subnet by interface.
316 if (!iface_name.empty()) {
317 for (auto const& subnet : subnets_) {
318
319 // If interface name matches with the one specified for the subnet
320 // and the client is not rejected based on the classification,
321 // return the subnet.
322 if ((subnet->getIface() == iface_name) &&
323 subnet->clientSupported(client_classes)) {
326 .arg(subnet->toText()).arg(iface_name);
327 return (subnet);
328 }
329 }
330 }
331
334 .arg(iface_name);
335
336 // No subnet found for this interface name.
337 return (Subnet6Ptr());
338}
339
341CfgSubnets6::selectSubnet(const OptionPtr& interface_id,
342 const ClientClasses& client_classes) const {
343 // We can only select subnet using an interface id, if the interface
344 // id is known.
345 if (interface_id) {
346 for (auto const& subnet : subnets_) {
347
348 // If interface id matches for the subnet and the subnet is not
349 // rejected based on the classification.
350 if (subnet->getInterfaceId() &&
351 subnet->getInterfaceId()->equals(interface_id) &&
352 subnet->clientSupported(client_classes)) {
353
356 .arg(subnet->toText());
357 return (subnet);
358 }
359 }
360
363 .arg(interface_id->toText());
364 }
365
366 // No subnet found.
367 return (Subnet6Ptr());
368}
369
371CfgSubnets6::getSubnet(const SubnetID subnet_id) const {
372 auto const& index = subnets_.get<SubnetSubnetIdIndexTag>();
373 auto subnet_it = index.find(subnet_id);
374 return ((subnet_it != index.cend()) ? (*subnet_it) : Subnet6Ptr());
375}
376
378CfgSubnets6::getLinks(const IOAddress& link_addr) const {
379 SubnetIDSet links;
380 for (auto const& subnet : subnets_) {
381 if (!subnet->inRange(link_addr)) {
382 continue;
383 }
384 links.insert(subnet->getID());
385 }
386 return (links);
387}
388
389void
391 using namespace isc::stats;
392
393 StatsMgr& stats_mgr = StatsMgr::instance();
394 // For each v6 subnet currently configured, remove the statistics.
395 for (auto const& subnet6 : subnets_) {
396 SubnetID subnet_id = subnet6->getID();
397 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
398 "total-nas"));
399
400 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
401 "assigned-nas"));
402
403 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
404 "cumulative-assigned-nas"));
405
406 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
407 "total-pds"));
408
409 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
410 "assigned-pds"));
411
412 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
413 "cumulative-assigned-pds"));
414
415 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
416 "declined-addresses"));
417
418 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
419 "reclaimed-declined-addresses"));
420
421 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
422 "reclaimed-leases"));
423
424 for (auto const& pool : subnet6->getPools(Lease::TYPE_NA)) {
425 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
426 StatsMgr::generateName("pool", pool->getID(),
427 "total-nas")));
428
429 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
430 StatsMgr::generateName("pool", pool->getID(),
431 "assigned-nas")));
432
433 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
434 StatsMgr::generateName("pool", pool->getID(),
435 "cumulative-assigned-nas")));
436
437 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
438 StatsMgr::generateName("pool", pool->getID(),
439 "declined-addresses")));
440
441 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
442 StatsMgr::generateName("pool", pool->getID(),
443 "reclaimed-declined-addresses")));
444
445 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
446 StatsMgr::generateName("pool", pool->getID(),
447 "reclaimed-leases")));
448 }
449
450 for (auto const& pool : subnet6->getPools(Lease::TYPE_PD)) {
451 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
452 StatsMgr::generateName("pd-pool", pool->getID(),
453 "total-pds")));
454
455 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
456 StatsMgr::generateName("pd-pool", pool->getID(),
457 "assigned-pds")));
458
459 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
460 StatsMgr::generateName("pd-pool", pool->getID(),
461 "cumulative-assigned-pds")));
462
463 stats_mgr.del(StatsMgr::generateName("subnet", subnet_id,
464 StatsMgr::generateName("pd-pool", pool->getID(),
465 "reclaimed-leases")));
466 }
467 }
468}
469
470void
472 using namespace isc::stats;
473
474 StatsMgr& stats_mgr = StatsMgr::instance();
475 // For each v6 subnet currently configured, calculate totals
476 for (auto const& subnet6 : subnets_) {
477 SubnetID subnet_id = subnet6->getID();
478
479 stats_mgr.setValue(StatsMgr::generateName("subnet", subnet_id,
480 "total-nas"),
481 subnet6->getPoolCapacity(Lease::TYPE_NA));
482
483 stats_mgr.setValue(StatsMgr::generateName("subnet", subnet_id,
484 "total-pds"),
485 subnet6->getPoolCapacity(Lease::TYPE_PD));
486
487 const std::string& name_nas(StatsMgr::generateName("subnet", subnet_id,
488 "cumulative-assigned-nas"));
489 if (!stats_mgr.getObservation(name_nas)) {
490 stats_mgr.setValue(name_nas, static_cast<int64_t>(0));
491 }
492
493 const std::string& name_pds(StatsMgr::generateName("subnet", subnet_id,
494 "cumulative-assigned-pds"));
495 if (!stats_mgr.getObservation(name_pds)) {
496 stats_mgr.setValue(name_pds, static_cast<int64_t>(0));
497 }
498
499 string const& name_ia_na_reuses(StatsMgr::generateName("subnet", subnet_id,
500 "v6-ia-na-lease-reuses"));
501 if (!stats_mgr.getObservation(name_ia_na_reuses)) {
502 stats_mgr.setValue(name_ia_na_reuses, int64_t(0));
503 }
504
505 string const& name_ia_pd_reuses(StatsMgr::generateName("subnet", subnet_id,
506 "v6-ia-pd-lease-reuses"));
507 if (!stats_mgr.getObservation(name_ia_pd_reuses)) {
508 stats_mgr.setValue(name_ia_pd_reuses, int64_t(0));
509 }
510
511 for (auto const& pool : subnet6->getPools(Lease::TYPE_NA)) {
512 const std::string& name_total_nas(StatsMgr::generateName("subnet", subnet_id,
513 StatsMgr::generateName("pool", pool->getID(),
514 "total-nas")));
515 if (!stats_mgr.getObservation(name_total_nas)) {
516 stats_mgr.setValue(name_total_nas, pool->getCapacity());
517 } else {
518 stats_mgr.addValue(name_total_nas, pool->getCapacity());
519 }
520
521 const std::string& name_ca_nas(StatsMgr::generateName("subnet", subnet_id,
522 StatsMgr::generateName("pool", pool->getID(),
523 "cumulative-assigned-nas")));
524 if (!stats_mgr.getObservation(name_ca_nas)) {
525 stats_mgr.setValue(name_ca_nas, static_cast<int64_t>(0));
526 }
527 }
528
529 for (auto const& pool : subnet6->getPools(Lease::TYPE_PD)) {
530 const std::string& name_total_pds(StatsMgr::generateName("subnet", subnet_id,
531 StatsMgr::generateName("pd-pool", pool->getID(),
532 "total-pds")));
533 if (!stats_mgr.getObservation(name_total_pds)) {
534 stats_mgr.setValue(name_total_pds, pool->getCapacity());
535 } else {
536 stats_mgr.addValue(name_total_pds, pool->getCapacity());
537 }
538
539 const std::string& name_ca_pds(StatsMgr::generateName("subnet", subnet_id,
540 StatsMgr::generateName("pd-pool", pool->getID(),
541 "cumulative-assigned-pds")));
542 if (!stats_mgr.getObservation(name_ca_pds)) {
543 stats_mgr.setValue(name_ca_pds, static_cast<int64_t>(0));
544 }
545 }
546 }
547
548 // Only recount the stats if we have subnets.
549 if (subnets_.begin() != subnets_.end()) {
551 }
552}
553
554void
556 for (auto const& subnet : subnets_) {
557 subnet->initAllocatorsAfterConfigure();
558 }
559}
560
561void
563 subnets_.clear();
564}
565
569 // Iterate subnets
570 for (auto const& subnet : subnets_) {
571 result->add(subnet->toElement());
572 }
573 return (result);
574}
575
576} // end of namespace isc::dhcp
577} // end of namespace isc
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
A generic exception that is thrown if a function is called in a prohibited way.
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
Definition: data.cc:299
Holds subnets configured for the DHCPv6 server.
Definition: cfg_subnets6.h:34
SubnetIDSet getLinks(const asiolink::IOAddress &link_addr) const
Convert a link address into a link set.
void updateStatistics()
Updates statistics.
Subnet6Ptr replace(const Subnet6Ptr &subnet)
Replaces subnet in the configuration.
Definition: cfg_subnets6.cc:47
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
void merge(CfgOptionDefPtr cfg_def, CfgSharedNetworks6Ptr networks, CfgSubnets6 &other)
Merges specified subnet configuration into this configuration.
Definition: cfg_subnets6.cc:90
Subnet6Ptr selectSubnet(const SubnetSelector &selector) const
Selects a subnet using parameters specified in the selector.
Subnet6Ptr getSubnet(const SubnetID id) const
Returns subnet with specified subnet-id value.
void removeStatistics()
Removes statistics.
const Subnet6Collection * getAll() const
Returns pointer to the collection of all IPv6 subnets.
Definition: cfg_subnets6.h:120
void add(const Subnet6Ptr &subnet)
Adds new subnet to the configuration.
Definition: cfg_subnets6.cc:29
void clear()
Clears all subnets from the configuration.
static SubnetSelector initSelector(const Pkt6Ptr &query)
Build selector from a client's message.
void del(const ConstSubnet6Ptr &subnet)
Removes subnet from the configuration.
Definition: cfg_subnets6.cc:68
ConstSubnet6Ptr getByPrefix(const std::string &subnet_prefix) const
Returns const pointer to a subnet which matches the specified prefix in the canonical form.
void initAllocatorsAfterConfigure()
Calls initAllocatorsAfterConfigure for each subnet.
ConstSubnet6Ptr getBySubnetId(const SubnetID &subnet_id) const
Returns const pointer to a subnet identified by the specified subnet identifier.
Definition: cfg_subnets6.h:139
Container for storing client class names.
Definition: classify.h:108
Exception thrown upon attempt to add subnet with an ID that belongs to the subnet that already exists...
Definition: subnet_id.h:36
static TrackingLeaseMgr & instance()
Return current lease manager.
void recountLeaseStats6()
Recalculates per-subnet and global stats for IPv6 leases.
Definition: lease_mgr.cc:282
@ RELAY_GET_FIRST
Definition: pkt6.h:77
Statistics Manager class.
ObservationPtr getObservation(const std::string &name) const
Returns an observation.
@ D6O_INTERFACE_ID
Definition: dhcp6.h:38
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
bool del(const std::string &name)
Removes specified statistic.
void setValue(const std::string &name, const int64_t value)
Records absolute integer observation.
void addValue(const std::string &name, const int64_t value)
Records incremental integer observation.
#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
Macro to conveniently test debug output and log it.
Definition: macros.h:14
boost::shared_ptr< Element > ElementPtr
Definition: data.h:28
isc::log::Logger dhcpsrv_logger("dhcpsrv")
DHCP server library Logger.
Definition: dhcpsrv_log.h:56
const isc::log::MessageID DHCPSRV_CFGMGR_SUBNET6_IFACE
const isc::log::MessageID DHCPSRV_CFGMGR_ADD_SUBNET6
std::set< dhcp::SubnetID > SubnetIDSet
Ordered list aka set of subnetIDs.
Definition: subnet_id.h:43
const isc::log::MessageID DHCPSRV_CFGMGR_SUBNET6_RELAY
boost::shared_ptr< const Subnet6 > ConstSubnet6Ptr
A const pointer to a Subnet6 object.
Definition: subnet.h:620
boost::shared_ptr< CfgOptionDef > CfgOptionDefPtr
Non-const pointer.
const isc::log::MessageID DHCPSRV_CFGMGR_UPDATE_SUBNET6
boost::shared_ptr< Subnet6 > Subnet6Ptr
A pointer to a Subnet6 object.
Definition: subnet.h:623
boost::shared_ptr< SharedNetwork6 > SharedNetwork6Ptr
Pointer to SharedNetwork6 object.
boost::shared_ptr< CfgSharedNetworks6 > CfgSharedNetworks6Ptr
Pointer to the configuration of IPv6 shared networks.
uint32_t SubnetID
Defines unique IPv4 or IPv6 subnet identifier.
Definition: subnet_id.h:25
const isc::log::MessageID DHCPSRV_CFGMGR_SUBNET6
const isc::log::MessageID DHCPSRV_CFGMGR_SUBNET6_IFACE_ID
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
Definition: pkt6.h:31
const isc::log::MessageID DHCPSRV_CFGMGR_DEL_SUBNET6
const isc::log::MessageID DHCPSRV_SUBNET6_SELECT_BY_INTERFACE_ID_NO_MATCH
const isc::log::MessageID DHCPSRV_SUBNET6_SELECT_BY_ADDRESS_NO_MATCH
const isc::log::MessageID DHCPSRV_SUBNET6_SELECT_BY_INTERFACE_NO_MATCH
const int DHCPSRV_DBG_TRACE
DHCP server library logging levels.
Definition: dhcpsrv_log.h:26
boost::shared_ptr< Option > OptionPtr
Definition: option.h:37
Defines the logger used by the top-level component of kea-lfc.
@ TYPE_PD
the lease contains IPv6 prefix (for prefix delegation)
Definition: lease.h:49
@ TYPE_NA
the lease contains non-temporary IPv6 address
Definition: lease.h:47
Tag for the index for searching by subnet prefix.
Definition: subnet.h:777
Subnet selector used to specify parameters used to select a subnet.
std::string iface_name_
Name of the interface on which the message was received.
ClientClasses client_classes_
Classes that the client belongs to.
asiolink::IOAddress remote_address_
Source address of the message.
OptionPtr interface_id_
Interface id option.
asiolink::IOAddress first_relay_linkaddr_
First relay link address.
Tag for the index for searching by subnet identifier.
Definition: subnet.h:774