mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-25 17:27:40 +00:00
minor changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ using TechnitiumLibrary.IO;
|
||||
|
||||
namespace DnsServerCore.Dhcp.Options
|
||||
{
|
||||
class ClasslessStaticRouteOption : DhcpOption
|
||||
public class ClasslessStaticRouteOption : DhcpOption
|
||||
{
|
||||
#region variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user