Re: Re: trouble modifying passthru sample

Home Forums Discussions Support Portal trouble modifying passthru sample Re: Re: trouble modifying passthru sample

#6841

asmercer2004
Participant

That actually makes sense. I actually wasn’t using the INTERMEDIATE_BUFFER structure at all. I was just builing and IntPtr to a packet that I built. I will correct that to look something like:

INTERMEDIATE_BUFFER outgoingBuffer = new INTERMEDIATE_BUFFER();
outgoingBuffer.m_dwDeviceFlags = PacketBuffer.m_dwDeviceFlags; outgoingBuffer.m_Flags = PacketBuffer.m_Flags;
outgoingBuffer.m_Length = PacketBuffer.m_Length + sizeof(GPSHeader);
outgoingBuffer.m_qLink = PacketBuffer.m_qLink;
outgoingBuffer.m_IBuffer = ???

should the m_IBuffer field contain just the udp packet data or the entire packet (ether_header, ipheader, etc.)