OID_WAN_CO_SET_LINK_INFO

The OID_WAN_CO_SET_LINK_INFO OID requests the miniport driver to set PPP framing information for a specific virtual connection (VC). A protocol uses an NDIS_WAN_CO_SET_LINK_INFO structure, defined as follows, to indicate this PPP framing information.

    typedef struct _NDIS_WAN_CO_SET_LINK_INFO {
         IN ULONG MaxSendFrameSize;
         IN ULONG MaxRecvFrameSize;
         IN ULONG SendFramingBits;
         IN ULONG RecvFramingBits;
         IN ULONG SendCompressionBits;
         IN ULONG RecvCompressionBits;
         IN ULONG SendACCM;
         IN ULONG RecvACCM;
    } NDIS_WAN_CO_SET_LINK_INFO,   *PNDIS_WAN_CO_SET_LINK_INFO;

The members of this structure contain the following information:

MaxSendFrameSize
Specifies the largest buffer, in bytes, the protocol will send for this VC. This value must be less than or equal to that returned by the miniport driver for the OID_WAN_CO_GET_LINK_INFO query.

The miniport driver's MiniportCoSendPackets function can reject any send packets submitted for this link that are larger than this value.

MaxRecvFrameSize
Specifies the largest network packet that the protocol will receive subsequently. This value must be less than or equal to that returned by the miniport driver for the OID_WAN_CO_GET_LINK_INFO query. The miniport driver can drop any received packets for this VC 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 one 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 underlying driver returned in response to the OID_WAN_CO_GET_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_INFO

OID_WAN_CO_GET_LINK_INFO