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