RtnDecodePacket

RtnDecodePacket is used to access various fields in the stack defined packet structure. The RtxTcpIp 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.

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 Values

None.

Requirements

Header Drvutl.h
Library Rtxtcpip.lib
IntervalZero.com | Support | Give Feedback