Commit Graph

35 Commits

Author SHA1 Message Date
Shreyas Zare
f17397a084 DhcpServer: fixed bug due to invalid host name causing scope to fail to activate. Updated SOA paramerters for zone created by dhcp. 2019-12-14 16:41:49 +05:30
Shreyas Zare
72ff15a91e Scope: using hostname from request instead of resserved lease hostname in GetOffer(). 2019-07-28 15:52:39 +05:30
Shreyas Zare
8a712cf739 DhcpServer: added reserved lease hostname update code after dhcp request message lease commit. 2019-07-28 15:50:29 +05:30
Shreyas Zare
144c952b70 Scope: removed code to update hostname in reserved lease in GetOffer(). 2019-07-28 15:47:57 +05:30
Shreyas Zare
fe5ea94ca0 Lease: added comments parameter to constructors. 2019-07-28 15:47:20 +05:30
Shreyas Zare
5df1677269 Lease: added comments field. 2019-07-27 12:35:44 +05:30
Shreyas Zare
fb29d181c3 DhcpServer: updated no offer handling in ProcessDhcpMessage() for Discover request. Fixed issue with space in host name option. Removed using hostname from reserved lease since hostname field will be removed from UI. Added hostname check in UpdateDnsAuthZone() to fix DHCP server failing to activate scope bug if client has not hostname. Added error handling in ActivateScope() to avoid partial binding of scope causing inconsistent state. 2019-07-27 12:34:12 +05:30
Shreyas Zare
4e1c46cc70 Scope: throwing error in GetOffer() to allow correctly logging the reason for no offer. 2019-07-27 12:27:57 +05:30
Shreyas Zare
9a13dd9493 Scope: added check for offers in IsAddressAvailable() that can cause issues in small scope ranges. Added lock for finding offer address in address pool to avoid race condition. 2019-06-23 16:43:48 +05:30
Shreyas Zare
713b0fd05b DhcpServer: added default scope of first start. Changed implementation to bind to ANY address only when a scope is active. Fixed minor issues. 2019-06-22 15:37:43 +05:30
Shreyas Zare
7ba8e62611 Scope: implemented UseThisDnsServer feature. Updated FindInterface() to do validations to check if interface has static ip address. Implemented LeaseType changes. 2019-06-22 15:35:57 +05:30
Shreyas Zare
0baf2bfed3 Lease: added LeaseType option. Changed ResetLeaseTime() to ExtendLease() to keep leased obtained time unchanged. Minor refactoring done. 2019-06-22 15:34:24 +05:30
Shreyas Zare
ff412bfd03 DhcpServer: minor bug fixes done. 2019-06-16 21:47:27 +05:30
Shreyas Zare
6fa2c5406b DhcpServer: socket implementation redesigned to resolve cross platform issues with consistent behavior on windows and linux. FindScope() implementation changed to use IPPacketInformation for scope selection. BindUdpListener() updated with SocketOptionName.ReuseAddress to work on Unix platforms. 2019-06-16 21:26:34 +05:30
Shreyas Zare
5c3be88616 Scope: added interface index property to allow matching broadcast message from specific interface to scope for cross platform consistent way. Implemented FindInterface() independent to be called while activating scope. 2019-06-16 21:20:17 +05:30
Shreyas Zare
5f0cdbda1e Scope: minor fix done. 2019-06-16 14:27:25 +05:30
Shreyas Zare
cf12608cf3 DhcpServer: fixed minor bug in RenameScope(). Added SaveScope() method. 2019-06-16 14:27:07 +05:30
Shreyas Zare
39dd66f44b Scope: changes done to include start and end address in offer. minor error message changes done. 2019-06-16 13:45:35 +05:30
Shreyas Zare
282e47f6a5 minor change 2019-06-16 13:44:55 +05:30
Shreyas Zare
5b038c0b44 Scope: minor issues fixed. 2019-06-15 21:08:05 +05:30
Shreyas Zare
030ebc2da6 Scope: replaces LeaseTime with day, hour and minute based time selection. 2019-06-15 20:56:48 +05:30
Shreyas Zare
88e391896e DhcpServer: changed offer dalay time to milli seconds. 2019-06-15 20:55:59 +05:30
Shreyas Zare
775a753a37 DhcpServer: implemented error handling in ReadUdpRequestAsync() to handle scope deactivation event correctly. Fixed minor bugs. Implemented internal zone option in UpdateDnsAuthZone(). Implemented GetAddressClientMap() method for dashboard client ip to domain mapping. 2019-06-15 18:09:09 +05:30
Shreyas Zare
981eddba10 Scope: implemented IComparable. fixed minor bugs. 2019-06-15 18:07:19 +05:30
Shreyas Zare
834b35bdc7 Lease: implemented IComparable and added ':' as allowed char for hardware address parsing. 2019-06-15 18:06:27 +05:30
Shreyas Zare
ed802b5693 DhcpServer: implemented pending changes and completed all features with basic testing. 2019-06-15 13:26:05 +05:30
Shreyas Zare
b27285e58e Scope: code refactoring done and finalized changes. 2019-06-15 13:25:15 +05:30
Shreyas Zare
36da0c8cb8 Lease: added parsing and helper methods. 2019-06-15 13:24:18 +05:30
Shreyas Zare
e88bb8d251 removed unused dhcp option parsing. 2019-06-15 13:23:27 +05:30
Shreyas Zare
b7dd58ed99 removed unused dhcp option 2019-06-15 13:23:03 +05:30
Shreyas Zare
4cef878d63 ClasslessStaticRouteOption: code refactoring done by using IPAddressExtension methods. 2019-06-15 13:22:52 +05:30
Shreyas Zare
0ea8d80990 minor changes 2019-06-09 20:52:04 +05:30
Shreyas Zare
27fa8f64d4 DhcpServer: added working dhcp server with basic tests done for all scope options. 2019-06-09 20:51:54 +05:30
Shreyas Zare
0f5cbfb9af dhcp: implemented dhcp message parsing changes. implemented all required options with parsing tests. implemented option fragmentation parsing using option overload. 2019-06-09 17:32:28 +05:30
Shreyas Zare
ebcf49f315 Dhcp Message and Options datagram parsers added 2019-06-02 20:29:23 +05:30