Kea  2.1.7-git
ncr_generator.h
Go to the documentation of this file.
1 // Copyright (C) 2015-2021 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 
13 namespace isc {
14 namespace dhcp {
15 
27 void queueNCR(const dhcp_ddns::NameChangeType& chg_type, const Lease4Ptr& lease);
28 
42 void queueNCR(const dhcp_ddns::NameChangeType& chg_type, const Lease6Ptr& lease);
43 
55 uint32_t calculateDdnsTtl(uint32_t lease_life_time);
56 
57 } // end of isc::dhcp namespace
58 } // end of isc namespace
59 
60 #endif // NCR_GENERATOR_H
uint32_t calculateDdnsTtl(uint32_t lease_lft)
Calculates TTL for a DNS resource record based on lease life time.
NameChangeType
Defines the types of DNS updates that can be requested.
Definition: ncr_msg.h:46
void queueNCR(const NameChangeType &chg_type, const Lease4Ptr &lease)
Creates name change request from the DHCPv4 lease.
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition: lease.h:278
Defines the logger used by the top-level component of kea-lfc.
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition: lease.h:487
This file provides the classes needed to embody, compose, and decompose DNS update requests that are ...