NDIS_SET_PACKET_TIME_SENT

NDIS_SET_PACKET_TIME_SENT(
    IN PNDIS_PACKET  Packet,
    IN ULONGLONG  TimeSent
    );

NDIS_SET_PACKET_TIME_SENT sets the TimeSent value in the out-of-band data block associated with a given packet descriptor.

Parameters

Packet
Points to a packet descriptor allocated by the caller for receive indications.
TimeSent
Specifies the system time at which the packet was transmitted over the network from a remote node.

Comments

Miniports can use NDIS_SET_PACKET_TIME_SENT to set this timestamp in the out-of-band data block associated with a packet descriptor they are about to indicate with NdisMIndicateReceivePacket.

All timestamps set in the NDIS_PACKET_OOB_DATA blocks associated with packets are expressed in system time units as the number of 100-nanosecond intervals since January 1, 160l.

When a protocol driver’s ProtocolReceivePacket function is called with such an indication, it can use NDIS_GET_PACKET_TIME_SENT to retrieve the TimeSent timestamp using the Packet pointer it is given on entry.

If the ProtocolReceive function is called with an indicated packet descriptor for which the underlying driver set the TimeSent timestamp, ProtocolReceive can call NdisQueryReceiveInformation to get this timestamp.

Callers of NDIS_SET_PACKET_TIME_SENT run at IRQL <= DISPATCH_LEVEL.

See Also

MiniportHandleInterrupt, MiniportTimer, NDIS_GET_PACKET_TIME_SENT, NdisMIndicateReceivePacket, NDIS_OOB_DATA_FROM_PACKET, NDIS_PACKET_OOB_DATA, NdisQueryReceiveInformation, NDIS_SET_PACKET_TIME_RECEIVED, ProtocolReceive, ProtocolReceivePacket