NDIS_SET_PACKET_TIME_SENT (Compact 2013)
3/26/2014
This macro sets the TimeSent value in the out-of-band data block associated with a specified packet descriptor.
Syntax
ULONGLONG NDIS_SET_PACKET_TIME_SENT(
PNDIS_PACKET _Packet,
ULONGLONG _TimeSent
);
Parameters
- _Packet
Pointer 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
Return Value
The return value is the _TimeSent value.
Remarks
Miniports can use this macro to set this time stamp in the out-of-band data block associated with a packet descriptor that they are about to indicate with the NdisMIndicateReceivePacket function.
All time stamps set in the NDIS_PACKET_OOB_DATA structures associated with packets are expressed in system time units as the number of 100-nanosecond intervals since January 1, 1601.
When a protocol driver's ProtocolReceivePacket function is called with such an indication, it can use the NDIS_GET_PACKET_TIME_SENT macro to retrieve the TimeSent time stamp, using the _Packet pointer that it is given on entry.
The NDIS_SET_PACKET_TIME_SENT macro is defined as follows.
#define NDIS_SET_PACKET_TIME_SENT(_Packet, _TimeSent) \
((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \
(_Packet)->Private.NdisPacketOobOffset))->TimeSent = (_TimeSent)
Requirements
Header |
ndis.h |
See Also
Reference
NDIS 5.x Legacy Network Driver Macros
NdisGetCurrentSystemTime
NDIS_GET_PACKET_TIME_SENT
NdisMIndicateReceivePacket
NdisMSendComplete
NDIS_PACKET_OOB_DATA
NdisSend
ProtocolReceive
ProtocolReceivePacket
NDIS 5.x Legacy Reference