public void SendGetResponse(PhysicalAddress destination, uint xid, DCP.BlockOptions option, object data) { Trace.WriteLine("Sending Get " + option.ToString() + " response", null); MemoryStream mem = new MemoryStream(); //ethernet Ethernet.Encode(mem, destination, adapter.MacAddress, Ethernet.Type.VLanTaggedFrame); //VLAN VLAN.Encode(mem, VLAN.Priorities.Priority0, VLAN.Type.PN); //Profinet Real Time RT.EncodeFrameId(mem, RT.FrameIds.DCP_Get_Set_PDU); //Profinet DCP DCP.EncodeGetResponse(mem, xid, option, data); //send Send(mem); }