public LLDPPacket(byte[] bytes, int offset, PosixTimeval timeval) : base(timeval) { this.TlvCollection = new TLVCollection(); base.header = new ByteArraySegment(bytes, offset, bytes.Length - offset); this.ParseByteArrayIntoTlvs(base.header.Bytes, base.header.Offset); }
public LLDPPacket() : base(new PosixTimeval()) { this.TlvCollection = new TLVCollection(); this.TlvCollection.Add(new EndOfLLDPDU()); }