NdisGetPacketFlags

UINT
NdisGetPacketFlags(
IN PNDIS_PACKET Packet
);

NdisGetPacketFlags returns the flags, if any, set by a protocol driver in a given packet descriptor.

Parameters

Packet

Points to the packet.

Return Value

NdisGetPacketFlags returns the value of the flags in the given packet descriptor. This function returns zero if the packet has no explictly set flags information.

Comments

NdisGetPacketFlags returns information set in the flags packet descriptor that a protocol driver passes down to the underlying NDIS driver, usually with NdisSend or NdisSendPackets. These flags can contain protocol-determined information about the send that is not included in the packet data nor 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 NdisGetPacketFlags to retrieve this information. For underlying NIC drivers that do not support multipacket sends, calls to NdisGetPacketFlags are unnecessary because the packet flags value is passed as an input parameter to the MiniportSend function.

Callers of NdisGetPacketFlags can run at any IRQL.

See Also

MiniportSend, MiniportSendPackets, MiniportWanSend, NDIS_PACKET, NDIS_PACKET_OOB_DATA, NdisSetPacketFlags