Hardware Dev Center

ProtocolTcpOffloadEvent routine

NDIS calls a protocol driver's or intermediate driver's ProtocolIndicateOffloadEvent function to post an indication that was initiated by an underlying driver's or offload target's call to the NdisTcpOffloadEventHandler function.

Syntax


TCP_OFFLOAD_EVENT_HANDLER ProtocolTcpOffloadEvent;

VOID ProtocolTcpOffloadEvent(
  _In_ PVOID OffloadContext,
  _In_ ULONG EventType,
  _In_ ULONG EventSpecificInformation
)
{ ... }

Parameters

OffloadContext [in]

A pointer to the protocol or intermediate driver's NDIS_OFFLOAD_HANDLE structure for the TCP connection on which the indication is being made. The protocol or intermediate driver supplied this pointer as an input parameter to the NdisInitiateOffload function when offloading the connection.

EventType [in]

The event being indicated as one of the following TCP_OFFLOAD_EVENT_TYPE values:

TcpIndicateDisconnect

Indicates that the remote host initiated a graceful disconnect by sending a FIN segment on the connection.

TcpIndicateRetrieve

Indicates that the offload target is requesting the host stack to terminate the offload of a TCP connection.

TcpIndicateAbort

Indicates that the remote host initiated an abortive disconnect by sending an acceptable RST segment on the connection.

TcpIndicateSendBacklogChange

Indicates a change in the preferred send backlog size.

EventSpecificInformation [in]

Specifies additional information about the event being indicated as follows:

TcpIndicateDisconnect

Not meaningful.

TcpIndicateRetrieve

Indicates the reason for the upload request as a TCP_UPLOAD_REASON value. For more information, see NdisTcpOffloadEventHandler.

TcpIndicateAbort

Not meaningful.

TcpIndicateSendBacklogChange

Specifies the optimum number of send data bytes that the host stack should have outstanding at the offload target in order to achieve the best data throughput.

Return value

None

Remarks

To propagate the indication to the overlying driver or host stack, the intermediate driver calls the NdisTcpOffloadEventHandler function. The intermediate driver passes the following parameters to the NdisTcpOffloadEventHandler function:

  • The NdisOffloadHandle that the offload target stored in its context for the offloaded TCP connection. For more information, see Referencing Offloaded State Through an Intermediate Driver.

  • The EventType that NDIS passed to the intermediate driver's ProtocolTcpOffloadEvent function.

  • The EventSpecificInformation that NDIS passed to the intermediate driver's ProtocolTcpOffloadEvent function.

Requirements

Target platform

Desktop

Header

Ndischimney.h (include Ndischimney.h)

See also

NdisTcpOffloadEventHandler

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft