Protocol Driver Send and Receive

A protocol calls NdisRequest to query or set the characteristics of an underlying miniport. The following table shows the objects used by NdisRequest to set characteristics.

Object Description
OID_GEN_MAXIMUM_FRAME_SIZE Queries the maximum frame size, in bytes, supported by an underlying NIC driver. The size returned does not include the packet header.
OID_GEN_MAXIMUM_TOTAL_SIZE Determines the largest packet the underlying NIC driver can accommodate on the NIC it manages. The protocol driver must restrict the size of the packets it subsequently sends to this size. It is an error for a protocol driver to submit a larger packet to the underlying NIC driver than the NIC driver has indicated it can support.
OID_GEN_MAXIMUM_SEND_PACKETS Determines the number of send packets that an underlying driver can accept each time the protocol calls NdisSendPackets. For more information on how this request can affect the protocol driver's subsequent send operations, see Sending Protocol Driver-Originated Packets.
OID_GEN_CURRENT_LOOKAHEAD Queries or sets request concerning the size of the lookahead data buffer the underlying driver supplies whenever the protocol's ProtocolReceive function is called. If the protocol driver issues this as a query request, NDIS returns the current lookahead buffer size for the given binding to the underlying NIC driver. If the protocol driver makes a set request with this code, it indicates its preferred lookahead buffer size, but the protocol is not assured that an underlying driver will conform to this request. If the underlying driver returned a value greater than one for a preceding OID_GEN_MAXIMUM_SEND_PACKETS query, that driver always indicates receives with a lookahead buffer containing a full network packet.
OID_GEN_MAC_OPTIONS Queries to determine the operating characteristics of the underlying NIC driver. This query returns information, such as whether the underlying driver supports full-duplex operations.
OID_GEN_PROTOCOL_OPTIONS Sets request to inform NDIS of underlying NIC operating characteristics.

WAN Dependent Sets

The following table shows the set information requests that a protocol driver bound above a WAN-capable NIC must also make.

Object Description
OID_WAN_PROTOCOL_TYPE Inform the underlying NDISWAN driver of the type of the protocol driver. The type is supplied as a single-byte, network-level protocol identifier.
OID_WAN_HEADER_FORMAT Inform the underlying NDISWAN driver of the header format of the packets it sends.

Medium-Dependent Queries

A protocol driver queries the medium-dependent current address with a medium-dependent object. The following list shows some example objects that a protocol might query:

See Also

Protocol Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.