/* This file is part of PacketDotNet PacketDotNet is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PacketDotNet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PacketDotNet. If not, see . */ /* * Copyright 2010 Evan Plaice * Copyright 2010 Chris Morgan */ namespace PacketDotNet.LLDP { /// /// An End Of LLDPDU TLV /// public class EndOfLLDPDU : TLV { #region Constructors /// /// Parses bytes into an End Of LLDPDU TLV /// /// /// TLV bytes /// /// /// The End Of LLDPDU TLV's offset from the /// origin of the LLDP /// public EndOfLLDPDU(byte[] bytes, int offset) : base(bytes, offset) { Type = 0; Length = 0; } /// /// Creates an End Of LLDPDU TLV /// public EndOfLLDPDU() { var bytes = new byte[TLVTypeLength.TypeLengthLength]; var offset = 0; var length = bytes.Length; tlvData = new PacketDotNet.Utils.ByteArraySegment(bytes, offset, length); Type = 0; Length = 0; } /// /// Convert this TTL TLV to a string. /// /// /// A human readable string /// public override string ToString () { return string.Format("[EndOfLLDPDU]"); } #endregion } }