RtnQueueRecvPacket

RtnQueueRecvPacket places a packet on the receive queue for the indicated network device. RtnQueueRecvPacket is normally called from the driver Receive thread after a signal from a driver Interrupt Service thread indicates a received packet is available. After a receive interrupt occurs, the driver reads all the available packets from the card, queues each of them with RtnQueueRecvPacket and then calls RtnProcessRecvQueue once to tell the stack to process all of the packets currently in the queue. See the Receive Thread section for an example on the use of RtnQueueRecvPacket.

Syntax

void RtnQueueRecvPacket(
    void *ndp,
    void *mp,
    unsigned long packetsize
);

Parameters

ndp

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

mp

Pointer to the packet to queue in the device receive queue

packetsize

Actual number of bytes in the packet. This is the number of bytes read from the card and placed in the packet, NOT the maximum packet size obtained with RtnDecodePacket.

Return Values

None

Requirements

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