Kea 2.5.8
ncr_generator.h
Go to the documentation of this file.
1// Copyright (C) 2015-2023 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#ifndef NCR_GENERATOR_H
8#define NCR_GENERATOR_H
9
10#include <dhcp_ddns/ncr_msg.h>
11#include <dhcpsrv/lease.h>
12#include <util/optional.h>
13
14namespace isc {
15namespace dhcp {
16
28void queueNCR(const dhcp_ddns::NameChangeType& chg_type, const Lease4Ptr& lease);
29
43void queueNCR(const dhcp_ddns::NameChangeType& chg_type, const Lease6Ptr& lease);
44
60uint32_t calculateDdnsTtl(uint32_t lease_life_time,
61 const util::Optional<double>& ddns_ttl_percent
62 = util::Optional<double>());
63
64} // end of isc::dhcp namespace
65} // end of isc namespace
66
67#endif // NCR_GENERATOR_H
NameChangeType
Defines the types of DNS updates that can be requested.
Definition: ncr_msg.h:45
uint32_t calculateDdnsTtl(uint32_t lease_lft, const util::Optional< double > &ddns_ttl_percent)
Calculates TTL for a DNS resource record based on lease life time.
void queueNCR(const NameChangeType &chg_type, const Lease4Ptr &lease)
Creates name change request from the DHCPv4 lease.
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition: lease.h:505
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition: lease.h:292
Defines the logger used by the top-level component of kea-lfc.
This file provides the classes needed to embody, compose, and decompose DNS update requests that are ...