summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease.h
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2022-05-06 07:55:32 +0200
committerAndrei Pavel <andrei@isc.org>2022-05-20 19:38:56 +0200
commit4286b27403017ce4de26997a49e6630a35526979 (patch)
tree757e0bba0948287e7e11344c6bec2d0812474d43 /src/lib/dhcpsrv/lease.h
parent[#2381] addresses review (diff)
downloadkea-4286b27403017ce4de26997a49e6630a35526979.tar.xz
kea-4286b27403017ce4de26997a49e6630a35526979.zip
[#562] use SubnetID from subnet_id.h in Lease
Diffstat (limited to 'src/lib/dhcpsrv/lease.h')
-rw-r--r--src/lib/dhcpsrv/lease.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/dhcpsrv/lease.h b/src/lib/dhcpsrv/lease.h
index 448c954b07..4fbfd8a6d2 100644
--- a/src/lib/dhcpsrv/lease.h
+++ b/src/lib/dhcpsrv/lease.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,18 +11,13 @@
#include <dhcp/duid.h>
#include <dhcp/option.h>
#include <dhcp/hwaddr.h>
+#include <dhcpsrv/subnet_id.h>
#include <cc/user_context.h>
#include <cc/cfg_to_element.h>
namespace isc {
namespace dhcp {
-/// @brief Unique identifier for a subnet (both v4 and v6)
-///
-/// Let's copy SubnetID definition from subnet.h. We can't include it directly,
-/// because subnet.h needs Lease::Type, so it includes lease.h
-typedef uint32_t SubnetID;
-
struct Lease;
/// @brief Pointer to the lease object.