Commit Graph

124 Commits

Author SHA1 Message Date
Shreyas Zare
872544e2a7 VendorSpecificInformationOption: fixed formating issue in ToString(). 2022-05-08 15:20:02 +05:30
Shreyas Zare
0e4f8f4d57 Scope: refactored RemoveLease() methods. Updated ConvertToReservedLease() and ConvertToDynamicLease() methods to support using both hardware address and client identifier. Code refactoring done. 2022-04-30 13:02:11 +05:30
Shreyas Zare
cca8433b0e DhcpServer: removed the remove lease methods. 2022-04-30 13:00:45 +05:30
Shreyas Zare
50f3ac388f DhcpServer: renamed RemoveLease() to RemoveLeaseByHardwareAddress(). Implemented RemoveLeaseByClientIdentifier() method. Minor refactoring changes done. 2022-04-30 12:04:46 +05:30
Shreyas Zare
ed5a831f95 Scope: implemented RemoveLeaseByClientIdentifier() method and renamed RemoveLease() to RemoveLeaseByHardwareAddress(). 2022-04-30 12:03:25 +05:30
Shreyas Zare
c52211fb47 Lease: minor refactoring done. 2022-04-30 12:02:17 +05:30
Shreyas Zare
02242a9bdf ClientIdentifierOption: implemented Parse() and ToString() helper methods. 2022-04-30 12:01:48 +05:30
Shreyas Zare
b2efaf2550 DhcpServer: setting default scope's domain name to home. 2022-04-23 17:47:50 +05:30
Shreyas Zare
fa417216f3 major code refactoring done. 2022-03-06 17:24:41 +05:30
Shreyas Zare
c8289e4c11 DhcpServer: Updated ReadUdpRequestAsync() to ignore SocketError.OperationAborted socket error code being thrown by .NET 6 when server is stopping. Updated UpdateDnsAuthZone() check if the DNS record for the domain name of a dynamic lease already exists to prevent overwrite but allow reserved leases to overwrite and existing DNS record. Updated RenameScope() to validate new scope name. 2022-03-06 15:41:10 +05:30
Shreyas Zare
5cd9d2e37d Scope: Added scope name validation. Updated FindInterface() to handle PlatformNotSupportedException. Updated GetOfferAsync() to return existing reserved lease only when the IP address matches. Updated GetExistingLeaseOrOffer() to check for offers first. Updated RemoveLease() to remove matching reserved lease entry only when the IP addresses match. 2022-03-06 15:30:18 +05:30
Shreyas Zare
2730c914ff minor refactoring changes done. 2022-01-23 20:21:13 +05:30
Shreyas Zare
8274408d4c DhcpServer: updated UpdateDnsAuthZone() to use zone name for managing DNS records. 2022-01-23 16:59:42 +05:30
Shreyas Zare
31cecf3b4d Scope: fixed client id comparison issue in IsAddressAlreadyAllocated() and updated GetReservedLease(). 2022-01-23 16:58:03 +05:30
Shreyas Zare
09f900bba2 VendorSpecificInformationOption: minor changes 2022-01-23 16:56:26 +05:30
Shreyas Zare
58f5b549cc minor changes 2021-10-23 12:03:16 +05:30
Shreyas Zare
6148e6ef60 DhcpServer: Implemented RemoveLease() method to remove lease and update DNS auth zone. 2021-09-18 19:23:34 +05:30
Shreyas Zare
0ec38f6fed Scope: made RemoveLease() internal to be called from dhcp server only. 2021-09-18 19:22:59 +05:30
Shreyas Zare
a12c132c37 DhcpServer: Implemented scope changes. Added IsAddressReserved() check while renewing dynamic lease. Updated FindScope() to allow finding scope for DECLINE messages. 2021-09-18 17:53:23 +05:30
Shreyas Zare
0872d635c6 Scope: Implemented ping check feature. Added RemoveLease() method. Code refactoring done. 2021-09-18 17:29:36 +05:30
Shreyas Zare
9609a02c6b Scope: minor changes. 2021-09-11 13:03:41 +05:30
Shreyas Zare
f49f78c557 Lease: minor refactoring changes. 2021-06-26 15:50:29 +05:30
Shreyas Zare
ba27b54ce5 DhcpServer: setting default scope lease days to 1. 2021-06-26 15:50:11 +05:30
Shreyas Zare
da36305b02 ClientFullyQualifiedDomainNameOption: updated ParseOptionValue() method to ignore null termination caused by buggy clients. 2021-06-12 13:47:20 +05:30
Shreyas Zare
36530ccf55 DhcpServer: code refactoring done. 2021-04-10 13:35:24 +05:30
Shreyas Zare
251e4e10bf Scope: code refactoring done. 2021-04-10 13:34:02 +05:30
Shreyas Zare
bba3a71f5d OptionOverloadValue: added flags attribute. 2021-04-10 13:32:56 +05:30
Shreyas Zare
bef86060eb ClientIdentifierOption: class made public 2021-04-10 13:32:35 +05:30
Shreyas Zare
37256bb8ec ClientFullyQualifiedDomainNameFlags: added flags attribute. 2021-04-10 13:32:15 +05:30
Shreyas Zare
193373ffee DhcpServer: updated code to use async socket calls from .net5. 2021-03-21 17:16:39 +05:30
Shreyas Zare
f8b9a24059 DhcpServer: implemented feature to allow overriding domain name for clients using reserved lease hostname option. Updated wait for interface logic to wait for full time until specific interface address is found. 2021-02-06 18:18:32 +05:30
Shreyas Zare
0a45b48e23 code refactoring done. 2021-02-06 18:13:33 +05:30
Shreyas Zare
7e27adc95f Scope: implemented ConvertToReservedLease() and ConvertToDynamicLease(). Implemented code changes to allow overriding client domain name. Code refactoring done. 2021-02-06 18:12:15 +05:30
Shreyas Zare
3aaf5744fb Exclusion: updated validation condition to allow single address exclusion. 2021-02-06 18:10:34 +05:30
Shreyas Zare
b9ca61bb80 Lease: added ConvertToReserved() and ConvertToDynamic() to allow changing lease type. 2021-02-06 18:09:59 +05:30
Shreyas Zare
51993661d5 dhcp Exclusion: added validation check. 2021-01-03 17:14:11 +05:30
Shreyas Zare
09fc300508 ignoring ObjectDisposedException when server stops. 2020-12-25 19:49:44 +05:30
Shreyas Zare
14ad2231e3 DhcpServer: updated ReadUdpRequestAsync() with task based async calling. Fixed minor null ref issue in UpdateDnsAuthZone(). 2020-12-25 18:21:49 +05:30
Shreyas Zare
5a1f32650d DhcpServer: saving modified scopes and zone in Stop(). 2020-12-20 16:55:47 +05:30
Shreyas Zare
3081307e1b DhcpServer: added logging while updating DNS entries and lease expiry. 2020-12-19 12:34:48 +05:30
Shreyas Zare
3085f1feb5 Scope: updated static ip validation in FindInterface() with explicit check for ipv4 dhcp server and with detailed error message. 2020-12-19 12:33:32 +05:30
Shreyas Zare
79639d55ab Lease: minor update to allow specifying hardware address type explicitly. 2020-12-12 16:49:52 +05:30
Shreyas Zare
816f360a58 DhcpServer: fixed minor issue caused by using incorrect client identifier while updating hostname in reserved leases. 2020-12-12 16:49:18 +05:30
Shreyas Zare
31eee972e0 removed workaround code due to issue: https://github.com/dotnet/runtime/issues/37873 2020-12-06 18:08:41 +05:30
Shreyas Zare
36116391b6 DhcpServer: added feature to automatically save modified zones. Added validation checks in UpdateDnsAuthZone. 2020-12-06 16:58:06 +05:30
Shreyas Zare
de28d05103 DhcpServer: Removing lease hostname entry from dns if the hostname has changed. 2020-12-05 19:35:20 +05:30
Shreyas Zare
07e714bd14 DhcpServer: updating hostname in reserved leases to null when host name is not provided. 2020-11-14 16:47:50 +05:30
Shreyas Zare
84a759bad5 Scope: implemented vendor specific information option. 2020-11-14 16:46:35 +05:30
Shreyas Zare
e84b4a3748 VendorSpecificInformationOption: added hex string parsing. 2020-11-14 16:44:28 +05:30
Shreyas Zare
8605862b3d DhcpMessage: added VendorClassIdentifier property. 2020-10-31 14:13:30 +05:30