BOOL CNdisApi::SendPacketToMstcp ( PETH_REQUEST pPacket );
TRUE if call was successful,
Pointer to the user allocated and initialized ETH_REQUEST structure.
The following fields of ETH_REQUEST must be initialized:
ETH_REQUEST.hAdapterHandlemust be set to the interface handle (obtained via call to CNdisApi::GetTcpipBoundAdaptersInfo) from which you would like to simulate receive.
ETH_REQUEST.EthPacket.Buffermust point to the user allocated and initialized
The following fields of the INTERMEDIATE_BUFFER should be initialized:
INTERMEDIATE_BUFFER.m_IBuffershould contain Ethernet packet
INTERMEDIATE_BUFFER.m_Lengthshould be initialized to the actual length of the packet
This member calls the filter driver with
IOCTL_NDISRD_SEND_PACKET_TO_MSTCP control code (see details below).
|Input Buffer Size|
|Output Buffer Size|