From f092bf266b91a342eec1c565f593d8feb29801a2 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 12 Nov 2022 14:53:48 +0530 Subject: [PATCH] DhcpOption: implemented support for option 119 and 138. --- DnsServerCore/Dhcp/DhcpOption.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/DnsServerCore/Dhcp/DhcpOption.cs b/DnsServerCore/Dhcp/DhcpOption.cs index c51a4be0..ea77a287 100644 --- a/DnsServerCore/Dhcp/DhcpOption.cs +++ b/DnsServerCore/Dhcp/DhcpOption.cs @@ -1,6 +1,6 @@ /* Technitium DNS Server -Copyright (C) 2019 Shreyas Zare (shreyas@technitium.com) +Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -102,7 +102,9 @@ namespace DnsServerCore.Dhcp StreetTalkServer = 75, StreetTalkDirectoryAssistance = 76, ClientFullyQualifiedDomainName = 81, + DomainSearch = 119, ClasslessStaticRoute = 121, + CAPWAPAccessControllerAddresses = 138, End = 255 } @@ -212,9 +214,15 @@ namespace DnsServerCore.Dhcp case DhcpOptionCode.ClientFullyQualifiedDomainName: return new ClientFullyQualifiedDomainNameOption(s); + case DhcpOptionCode.DomainSearch: + return new DomainSearchOption(s); + case DhcpOptionCode.ClasslessStaticRoute: return new ClasslessStaticRouteOption(s); + case DhcpOptionCode.CAPWAPAccessControllerAddresses: + return new CAPWAPAccessControllerOption(s); + case DhcpOptionCode.Pad: case DhcpOptionCode.End: return new DhcpOption(optionCode);