Partager via


NDIS_SET_PACKET_TIME_TO_SEND (Compact 2013)

3/26/2014

This macro sets the TimeToSend value in the out-of-band data block associated with a specified packet descriptor.

Syntax

ULONGLONG NDIS_SET_PACKET_TIME_TO_SEND(
  PNDIS_PACKET _Packet,
  ULONGLONG _TimeToSend
);

Parameters

  • _Packet
    Pointer to a packet descriptor allocated by the caller for a send
  • _TimeToSend
    Specifies the system time at which the packet should be transmitted over the network

Return Value

The return value is the _TimeToSend value.

Remarks

Protocols can use this macro to set this time stamp in the out-of-band data block associated with a driver-allocated packet descriptor to be passed in a subsequent call to the NdisSend function.

All time stamps set in the NDIS_PACKET_OOB_DATA blocks associated with packet descriptors are expressed in system time units as the number of 100-nanosecond intervals since January 1, 1601.

A protocol can call the NdisGetCurrentSystemTime function and add some number of system time units to the returned value in order to supply the _TimeToSend argument to this macro, unless the client that initiated the send request has already supplied such a time stamp.

The NDIS_SET_PACKET_TIME_TO_SEND macro is defined as follows.

#define NDIS_SET_PACKET_TIME_TO_SEND(_Packet, _TimeToSend)  \
    ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) +            \
    (_Packet)->Private.NdisPacketOobOffset))->TimeToSend = (_TimeToSend)

Requirements

Header

ndis.h

See Also

Reference

NDIS 5.x Legacy Network Driver Macros
NdisGetCurrentSystemTime
NDIS_PACKET_OOB_DATA
NdisSend
NDIS 5.x Legacy Reference