Kea
3.1.1
cfg_shared_networks.cc
Go to the documentation of this file.
1
// Copyright (C) 2017-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 <
dhcpsrv/cfg_shared_networks.h
>
9
10
using namespace
isc::asiolink
;
11
12
namespace
isc
{
13
namespace
dhcp
{
14
15
bool
16
CfgSharedNetworks4::hasNetworkWithServerId
(
const
IOAddress
& server_id)
const
{
17
auto
const
& index =
networks_
.get<
SharedNetworkServerIdIndexTag
>();
18
auto
network_it = index.find(server_id);
19
return
(network_it != index.cend());
20
}
21
22
}
// end of namespace isc::dhcp
23
}
// end of namespace isc
cfg_shared_networks.h
isc::asiolink::IOAddress
The IOAddress class represents an IP addresses (version agnostic)
Definition
io_address.h:45
isc::dhcp::CfgSharedNetworks4::hasNetworkWithServerId
bool hasNetworkWithServerId(const asiolink::IOAddress &server_id) const
Checks if specified server identifier has been specified for any network.
Definition
cfg_shared_networks.cc:16
isc::dhcp::CfgSharedNetworks< SharedNetwork4Ptr, SharedNetwork4Collection >::networks_
SharedNetwork4Collection networks_
Definition
cfg_shared_networks.h:215
isc::asiolink
Definition
addr_utilities.cc:170
isc::dhcp
Definition
dhcp4/client_handler.cc:20
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
isc::dhcp::SharedNetworkServerIdIndexTag
A tag for accessing index by server identifier.
Definition
shared_network.h:37
src
lib
dhcpsrv
cfg_shared_networks.cc
Generated on Fri Aug 29 2025 13:13:12 for Kea by
1.13.2