NDIS-Supplied Out-of-Band Data Macros (NDIS 5.1)
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
Miniport drivers can use the following macros to access the out-of-band (OOB) data that may be associated with a packet. For more information about OOB data, see Packet Out-of-Band Data.
- NDIS_OOB_DATA_FROM_PACKET
Returns a pointer to the OOB data block associated with a given packet descriptor.
- NDIS_GET_PACKET_HEADER_SIZE
Returns the HeaderSize value from the out-of-band data block associated with a given packet descriptor.
- NDIS_GET_PACKET_MEDIA_SPECIFIC_INFO
Returns the MediaSpecificInformation pointer and the SizeMediaSpecificInfo value from the OOB data block associated with a given packet descriptor.
- NDIS_GET_PACKET_PROTOCOL_TYPE
Returns the protocol ID associated with a given packet descriptor.
- NDIS_GET_PACKET_STATUS
Returns the Status value from the OOB data block associated with a given packet descriptor.
- NDIS_GET_PACKET_TIME_RECEIVED
Returns the TimeReceived value from the out-of-band data block associated with a given packet descriptor.
- NDIS_GET_PACKET_TIME_SENT
Returns the TimeSent value from the out-of-band data block associated with a given packet descriptor.
- NDIS_GET_PACKET_TIME_TO_SEND
Returns the TimeToSend value from the OOB data block associated with a given packet descriptor.
- NDIS_SET_PACKET_HEADER_SIZE
Sets the HeaderSize value in the OOB data block associated with a given packet descriptor for a subsequent receive indication.
- NDIS_SET_PACKET_MEDIA_SPECIFIC_INFO
Sets the MediaSpecificInformation pointer and the SizeMediaSpecificInfo value in the OOB data block associated with a given packet descriptor.
- NDIS_SET_PACKET_STATUS
Sets the Status value in the OOB data block associated with a given packet descriptor just before a driver calls NdisM(Co)IndicateReceivePacket or before a driver's Miniport(Co)SendPackets function returns control.
- NDIS_SET_PACKET_TIME_RECEIVED
Sets the TimeReceived value in the OOB data block associated with a given packet descriptor.
- NDIS_SET_PACKET_TIME_SENT
Sets the TimeSent value in the OOB data block associated with a given packet descriptor.
- NDIS_GET_PACKET_TIME_TO_SEND
Sets the TimeToSend value in the out-of-band data block associated with a given packet descriptor.