Example #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();
 }
Example #2
0
 public TopPipe_Args_Instance_Set_smacTopPipe_Args_Action(EthernetAddress smac) : base(action_list.TopPipe_Args_Instance_Set_smacTopPipe_Args)
 {
     this.smac = smac;
 }
Example #3
0
 void Set_smac(TopPipe_Args TopPipe_Args, EthernetAddress smac)
 {
     TopPipe_Args.headers.ethernet.srcAddr = smac;
 }
Example #4
0
 void Set_dmac(TopPipe_Args TopPipe_Args, EthernetAddress dmac)
 {
     TopPipe_Args.headers.ethernet.dstAddr = dmac;
 }