RttcpipFrameTransmitInterface
RttcpipFrameTransmitInterface is used by a filter driver or an application to transmit an Ethernet frame for the device pointed by ndp.
Syntax
BOOL RttcpipFrameTransmitInterface(
PVOID ndp,
PVOID pEthernetFrame,
ULONG ulDataSize
);
Parameters
ndp
The network device pointer.
pEthernetFrame
A pointer to a formatted Ethernet frame that includes an Ethernet header.
ulDataSize
The size of Ethernet frame, in bytes.
Return Value
If this function succeeds, it returns TRUE. If this function fails, it returns FALSE. Call WSAGetLastError for information on failure. The possible error codes are:
Remarks
This function can be called in a filter driver or in an application that uses the TCP/IP Stack.
The network device pointer might be obtained by calling RttcpipGetDevicePtr.
The Frame Ethernet header must contain the destination MAC address and Ethernet type.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
RttcpipApi.h |
RtTcpipApi.lib |
See Also: