RtnDecodePacket

RtnDecodePacket allows access to various fields of the packet.

Syntax

VOID RtnDecodePacket(
    PVOID mptr,
    PULONG* ndp,
    PULONG* data,
    PULONG length
);

Parameters

mptr

Pointer to a packet to decode.

ndp

Pointer to a location to place network device pointer (ndp) for this packet.

data

Pointer to a location to place a pointer to the data area for this packet.

length

Pointer to a location to place the maximum length of this packet.

Return Value

None.

Remarks

The client application of the Network Abstraction Layer (NAL) defines its own internal packet format when using the driver functions RtndReceive and RtndTransmit. 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). This data area can hold up to the number of bytes returned in the data length field.

Requirements

Minimum Supported Version RTX64 4.0
Header rtnapi.h
Library RTX64Nal.lib