OID_WAN_CO_GET_LINK_INFO

The OID_WAN_CO_GET_LINK_INFO OID requests the miniport driver to return PPP framing information about the current state of a virtual connection (VC). This information is returned in an NDIS_WAN_CO_GET_LINK_INFO structure, defined as follows.

    typedef struct _NDIS_WAN_CO_GET_LINK_INFO {
         OUT ULONG MaxSendFrameSize;
         OUT ULONG MaxRecvFrameSize;
         OUT ULONG SendFramingBits;
         OUT ULONG RecvFramingBits;
         OUT ULONG SendCompressionBits;
         OUT ULONG RecvCompressionBits;
         OUT ULONG SendACCM;
         OUT ULONG RecvACCM;
    } NDIS_WAN_CO_GET_LINK_INFO,   *PNDIS_WAN_CO_GET_LINK_INFO;

The members of this structure contain the following information:

MaxSendFrameSize
Specifies the maximum buffer size, in bytes, that the miniport driver can accept for transmission on this VC. The miniport driver's MiniportCoSendPackets function can reject any incoming send packet that is larger than this size.

MaxRecvFrameSize
Specifies the largest packet that will be received from the network. The miniport driver can drop any packets that are larger.

SendFramingBits
Specifies send-framing bits indicating the type of framing that should be sent. If the miniport driver detects incompatibilities between SendFramingBits and RecvFramingBits, it returns NDIS_STATUS_INVALID_DATA.

The proper NLPID and framing format should be used based on the framing bits wherever applicable.

RecvFramingBits
Specifies receive-framing bits indicating the type of framing that should be received.

SendCompressionBits
Reserved.

RecvCompressionBits
Reserved.

SendACCM
For asynchronous media types, logical bits 0-31 indicate the respective byte to be byte stuffed. That is, if bit 0 is set to 1, then ASCII character 0x00 should be byte stuffed, and so forth.

RecvACCM
As described for SendACCM.

Remarks

Possible values for SendFramingBits and RecvFramingBits include any the driver returned in response to the OID_WAN_CO_GET_LINK_INFO query.

Requirements

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows XP.

Header

Ntddndis.h (include Ndis.h)

See also

OID_WAN_CO_GET_LINK_INFO