using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;

namespace skyscraper8.Docsis.L2VPN
{
	public class ESafeHostCapability
	{
		public ESafeHostCapability(byte[] buffer) 
		{
			ESafeIfIndex = (ESafeIfIndex)buffer[0];

			byte[] macBuffer = new byte[6];
			Array.Copy(buffer, 1, macBuffer, 0, 6);
			ESafeMacAddress = new PhysicalAddress(macBuffer);
		}

		public ESafeIfIndex ESafeIfIndex { get; private set; }
		public PhysicalAddress ESafeMacAddress { get; private set; }
	}

	public enum ESafeIfIndex : byte
	{
		ERouter = 1,
		EMta = 16,
		EStbIp = 17,
		ETea = 19
	}
}
