35 lines
797 B
C#
35 lines
797 B
C#
using System;
|
|
using ln.types.net;
|
|
using ln.types.odb.attributes;
|
|
using System.Collections.Generic;
|
|
namespace ln.dhcp
|
|
{
|
|
public class DHCPServerInterface
|
|
{
|
|
[DocumentID]
|
|
public String Name { get; set; }
|
|
public IPv4 InterfaceAddress { get; set; }
|
|
|
|
[ByReference]
|
|
IPPool pool;
|
|
public IPPool Pool
|
|
{
|
|
get => pool;
|
|
set => pool = value;
|
|
}
|
|
|
|
List<Option> defaultOptions = new List<Option>();
|
|
public Option[] DefaultOptions => defaultOptions.ToArray();
|
|
|
|
private DHCPServerInterface()
|
|
{
|
|
}
|
|
|
|
public DHCPServerInterface(IPv4 interfaceAddress)
|
|
{
|
|
InterfaceAddress = interfaceAddress;
|
|
Name = InterfaceAddress.ToString();
|
|
}
|
|
}
|
|
}
|