34 lines
966 B
C#
34 lines
966 B
C#
// /**
|
|
// * File: NetworkDevicePort.cs
|
|
// * Author: haraldwolff
|
|
// *
|
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|
// *
|
|
// *
|
|
// **/
|
|
using System;
|
|
namespace ln.provider.netwatch.entities
|
|
{
|
|
public class NetworkDevicePort
|
|
{
|
|
public NetworkDevice NetworkDevice { get; }
|
|
|
|
public string Name { get; set; }
|
|
public byte[] HWAddress { get; set; }
|
|
public FlaggedIP[] IPAddresses { get; set; } = new FlaggedIP[0];
|
|
|
|
private NetworkDevicePort()
|
|
{
|
|
}
|
|
|
|
public NetworkDevicePort(NetworkDevice networkDevice,string name) :this(networkDevice,name,new byte[0]){}
|
|
public NetworkDevicePort(NetworkDevice networkDevice, string name, byte[] hwaddr)
|
|
{
|
|
NetworkDevice = networkDevice;
|
|
Name = name;
|
|
HWAddress = hwaddr;
|
|
}
|
|
}
|
|
}
|