minor changes

This commit is contained in:
Shreyas Zare
2019-06-09 20:52:04 +05:30
parent 27fa8f64d4
commit 0ea8d80990
3 changed files with 16 additions and 3 deletions

View File

@@ -328,6 +328,19 @@ namespace DnsServerCore.Dhcp
option.WriteTo(s);
}
public string GetClientFullIdentifier()
{
string hardwareAddress = BitConverter.ToString(_clientHardwareAddress);
if (_clientFullyQualifiedDomainName != null)
return _clientFullyQualifiedDomainName.DomainName + " [" + hardwareAddress + "]";
if (_hostName != null)
return _hostName.HostName + " [" + hardwareAddress + "]";
return "[" + hardwareAddress + "]";
}
#endregion
#region properties

View File

@@ -24,7 +24,7 @@ using TechnitiumLibrary.IO;
namespace DnsServerCore.Dhcp
{
enum DhcpOptionCode : byte
public enum DhcpOptionCode : byte
{
Pad = 0,
SubnetMask = 1,
@@ -106,7 +106,7 @@ namespace DnsServerCore.Dhcp
End = 255
}
class DhcpOption
public class DhcpOption
{
#region variables

View File

@@ -25,7 +25,7 @@ using TechnitiumLibrary.IO;
namespace DnsServerCore.Dhcp.Options
{
class ClasslessStaticRouteOption : DhcpOption
public class ClasslessStaticRouteOption : DhcpOption
{
#region variables