RtnGetPacket

RtnGetPacket returns a pointer to a network packet.

Syntax

PVOID RtnGetPacket(
    PVOID ndp,
    LONG length
);

Parameters

ndp

Network Device Pointer. Opaque network device identifier (pointer).

length

Length required for the packet.

Return Value

A pointer to the network packet structure. NULL on failure.

Remarks

The length of the packet is guaranteed to be long enough to contain length bytes of data (it may be longer).

The driver must use RtnGetPacket in RtndReceive to obtain a packet to place received data into. The RtnDecodePacket routine is used to access the data area, length and ndp fields of the packet.

Requirements

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

See Also:

RtndReceive

RtnDecodePacket