Freigeben über


NdisGetPacketFlags (Compact 2013)

3/26/2014

This function returns the flags, if any, set by a protocol driver in a specified packet descriptor.

Syntax

UINT NdisGetPacketFlags(
  PNDIS_PACKET Packet
);

Parameters

  • Packet
    [in] Pointer to the packet.

Return Value

The value of the flags in the specified packet descriptor indicates success. Returns 0 if the packet has no flag information explicitly set.

Remarks

This function returns information set in the flag packet descriptor that a protocol driver passes down to the underlying NDIS driver, usually with the NdisSend function. These flags can contain protocol-determined information about the send that is not included in the packet data or in the out-of-band block associated with the packet descriptor.

Protocol drivers can set the flags in packets to be sent on any medium that transmits data in an expedited manner. The MiniportSendPackets function of an underlying NIC driver calls this function to retrieve this information. For underlying NIC drivers that do not support multipacket sends, calls to this function are unnecessary because the packet flags value is passed as an input parameter to the MiniportSend function.

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS 5.x Legacy Functions
MiniportSend
MiniportSendPackets
NdisSend
NdisSetPacketFlags