Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public LLDPPacket() : base(new PosixTimeval())
 {
     this.TlvCollection = new TLVCollection();
     this.TlvCollection.Add(new EndOfLLDPDU());
 }