DhcpOption: implemented support for option 119 and 138.

This commit is contained in:
Shreyas Zare
2022-11-12 14:53:48 +05:30
parent 4bcbda7aae
commit f092bf266b

View File

@@ -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);