Kea
1.5.0
cfg_shared_networks.cc
Go to the documentation of this file.
1
// Copyright (C) 2017 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
const
auto
& index = networks_.get<
SharedNetworkServerIdIndexTag
>();
18
auto
network_it = index.find(server_id);
19
return
(network_it != index.cend());
20
}
21
22
23
}
// end of namespace isc::dhcp
24
}
// end of namespace isc
isc::asiolink::IOAddress
The IOAddress class represents an IP addresses (version agnostic)
Definition:
io_address.h:45
isc::asiolink
Definition:
dummy_io_cb.h:17
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
cfg_shared_networks.h
isc::dhcp::SharedNetworkServerIdIndexTag
A tag for accessing index by server identifier.
Definition:
shared_network.h:35
src
lib
dhcpsrv
cfg_shared_networks.cc
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18