IOCTL_NDISRD_SEND_PACKETS_TO_MSTCP
This IOCTL requests
the helper driver to indicate the bulk of raw Ethernet packets
to MSTCP as it was received from the selected interface.
| Input
Buffer
|
_ETH_M_REQUEST
|
| Input Buffer
Size
|
sizeof
(_ETH_M_REQUEST)
|
| Output Buffer
|
None
|
| Output Buffer
Size
|
0
|
Remarks:
For this call the
following fields of ETH_M_REQUEST must be initialized:
- ETH_M_REQUEST.hAdapterHandle
must be set to the interface handle (obtained via call to
CNdisApi::GetTcpipBoundAdaptersInfo) from which you would like to
simulate receive.
- ETH_M_REQUEST.dwPacketsNumber
must be set to the number of initialized
NDISRD_ETH_Packet structures in EthPacket array
- ETH_M_REQUEST.EthPacket[].Buffer
must point to the user allocated and initialized
INTERMEDIATE_BUFFER structure
The following fields
of the INTERMEDIATE_BUFFER should be initialized:
- INTERMEDIATE_BUFFER.m_IBuffer
should contain Ethernet packet
- INTERMEDIATE_BUFFER.m_Length
should be initialized to the actual length of the packet
|