RtnDecodePacket
RtnDecodePacket is used to access various fields in the stack defined packet structure.
Syntax
void RtnDecodePacket(
void *mptr,
unsigned long** ndp,
unsigned long** data,
unsigned long *length
);
Parameters
mptr
Pointer to packet to decode
ndp
Pointer to location to place network device pointer (ndp) for this packet
data
Pointer to location to place pointer to data area for this packet.
length
Pointer to location to place maximum length of this packet.
Return Value
None.
Remarks
The RT-TCP/IP Protocol Stack defines its own internal packet format. In order to access fields required by the driver, the driver should use RtnDecodePacket. RtnDecodePacket returns the Network Device Pointer (ndp), the data area pointer (data) and the maximum data area length (length) of the packet. When data is read from a NIC it should be placed in the data area pointed to by the data area pointer (data) returned by RtnDecodePacket. This data area can hold up to the number of bytes returned in the data length field returned by RtnDecodePacket.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | rtnapi.h |
Library | RtTcpip.lib |