From fe5ea94ca05b860a5937c89eb404efe121c827f9 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 28 Jul 2019 15:47:20 +0530 Subject: [PATCH] Lease: added comments parameter to constructors. --- DnsServerCore/Dhcp/Lease.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/DnsServerCore/Dhcp/Lease.cs b/DnsServerCore/Dhcp/Lease.cs index e5742256..f4c5f338 100644 --- a/DnsServerCore/Dhcp/Lease.cs +++ b/DnsServerCore/Dhcp/Lease.cs @@ -51,24 +51,25 @@ namespace DnsServerCore.Dhcp #region constructor - internal Lease(LeaseType type, ClientIdentifierOption clientIdentifier, string hostName, byte[] hardwareAddress, IPAddress address, uint leaseTime) + internal Lease(LeaseType type, ClientIdentifierOption clientIdentifier, string hostName, byte[] hardwareAddress, IPAddress address, string comments, uint leaseTime) { _type = type; _clientIdentifier = clientIdentifier; _hostName = hostName; _hardwareAddress = hardwareAddress; _address = address; + _comments = comments; _leaseObtained = DateTime.UtcNow; ExtendLease(leaseTime); } - internal Lease(LeaseType type, string hostName, byte[] hardwareAddress, IPAddress address) - : this(type, new ClientIdentifierOption(1, hardwareAddress), hostName, hardwareAddress, address, 0) + internal Lease(LeaseType type, string hostName, byte[] hardwareAddress, IPAddress address, string comments) + : this(type, new ClientIdentifierOption(1, hardwareAddress), hostName, hardwareAddress, address, comments, 0) { } - internal Lease(LeaseType type, string hostName, string hardwareAddress, IPAddress address) - : this(type, hostName, ParseHardwareAddress(hardwareAddress), address) + internal Lease(LeaseType type, string hostName, string hardwareAddress, IPAddress address, string comments) + : this(type, hostName, ParseHardwareAddress(hardwareAddress), address, comments) { } internal Lease(BinaryReader bR)