Пример #1
0
 public override void Parse(byte[] data, uint offset)
 {
     offset   *= 8;
     dstAddr   = BitHelper.Extract48(data, offset + 0);
     srcAddr   = BitHelper.Extract48(data, offset + 48);
     etherType = BitHelper.Extract16(data, offset + 96);
     length    = 112;
     setValid();
 }
Пример #2
0
 public void Extract(byte[] data)
 {
     dstAddr   = BitHelper.Extract48(data, offset);
     srcAddr   = BitHelper.Extract48(data, offset + 5);
     etherType = BitHelper.Extract16(data, offset + 10);
 }