CNdisApi::SendPacketToMstcp
BOOL
SendPacketToMstcp ( PETH_REQUEST pPacket
);
Return Value:
TRUE if call was
successful, FALSE otherwise
Parameters:
pPacket
Pointer to the user
allocated and initialized ETH_REQUEST structure.
Remarks:
This member is a
simple wrapper for IOCTL_NDISRD_SEND_PACKET_TO_MSTCP.
For this call the following fields of ETH_REQUEST must be
initialized:
- ETH_REQUEST.hAdapterHandle
must be set to the interface handle (obtained via call to
CNdisApi::GetTcpipBoundAdaptersInfo) from which you would like to
simulate receive.
- ETH_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
|