NDIS_SET_PACKET_TIME_SENT function

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.

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

Syntax

VOID NDIS_SET_PACKET_TIME_SENT(
  _In_ PNDIS_PACKET Packet,
  _In_ ULONGLONG    TimeSent
);

Parameters

  • Packet [in]
    Pointer to a packet descriptor allocated by the caller for receive indications.

  • TimeSent [in]
    Specifies the system time at which the packet was transmitted over the network from a remote node.

Return value

None

Remarks

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, 1601.

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 NdisGetReceivedPacket and NDIS_GET_ORIGINAL_PACKET to get the packet that contains this timestamp.

Requirements

Target platform

Desktop

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

See also

MiniportHandleInterrupt

MiniportTimer

NDIS_GET_ORIGINAL_PACKET

NDIS_GET_PACKET_TIME_SENT

NdisGetReceivedPacket

NdisMIndicateReceivePacket

NDIS_OOB_DATA_FROM_PACKET

NDIS_PACKET_OOB_DATA

NDIS_SET_PACKET_TIME_RECEIVED

ProtocolReceive

ProtocolReceivePacket

 

 

Send comments about this topic to Microsoft