OID_GEN_MAXIMUM_TOTAL_SIZE (Compact 2013)

3/26/2014

As a query, this OID specifies the maximum total packet length, in bytes, the network adapter supports. This specification includes the header.

Remarks

The returned length specifies the largest packet size for the underlying medium. Therefore, the returned length depends on the particular medium. A protocol driver might use this returned length as a gauge to determine the maximum size packet that a miniport driver could forward to the protocol driver. If the protocol driver preallocates buffers, it allocates buffers accordingly. The returned length also specifies the largest packet that a protocol driver can pass to the NdisSendNetBufferLists function.

If the miniport driver for a network adapter enables 802.1p packet priority (that is, the miniport driver specifies the NDIS_MAC_OPTION_8021P_PRIORITY bit in the OID_GEN_MAC_OPTIONS OID bitmask). Then the miniport driver must specify its maximum total packet length as 4 bytes less than the maximum size of packets received or sent over the network. For example, if a network adapter that has 802.1p packet priority enabled receives and sends packets on the wire that are 1514 bytes in length, the miniport driver for the network adapter must report its maximum total packet length as 1510 bytes. The miniport driver must never indicate up to the bound protocol driver packets received over the network that are longer than the packet size specified by OID_GEN_MAXIMUM_TOTAL_SIZE. That is, even if the miniport driver receives packets over the network that are not marked with priority values but are still the maximum size that the underlying medium supports, the miniport driver can only indicate up packets that do not exceed the size specified by OID_GEN_MAXIMUM_TOTAL_SIZE.

Requirements

Header

ntddndis.h

See Also

Reference

General Operational OIDs
MiniportQueryInformation
NDIS_REQUEST
NdisSend
NdisSendPackets
NdisSendNetBufferLists
OID_GEN_MAC_OPTIONS