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