Compartilhar via


OID_WAN_SET_LINK_INFO

The OID_WAN_SET_LINK_INFO OID requests the miniport driver to set information for an established link. The protocol-supplied information is formatted as an NDIS_WAN_SET_LINK_INFO structure, defined as follows:

typedef struct _NDIS_WAN_SET_LINK_INFO {         IN NDIS_HANDLE NdisLinkHandle;
         IN ULONG MaxSendFrameSize;
         IN ULONG MaxRecvFrameSize;
         IN ULONG HeaderPadding;
         IN ULONG TailPadding;
         IN ULONG SendFramingBits;
         IN ULONG RecvFramingBits;
         IN ULONG SendCompressionBits;
         IN ULONG RecvCompressionBits;
         IN ULONG SendACCM;
         IN ULONG RecvACCM;
 } NDIS_WAN_SET_LINK_INFO, *PNDIS_WAN_SET_LINK_INFO;

The members of this structure contain the following information:

  • NdisLinkHandle
    Identifies the link. This is the handle the miniport driver supplied in its initial line-up indication for this link.

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

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

  • MaxRecvFrameSize
    Specifies the largest net packet, not including the driver's padding, 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_GET_LINK_INFO query. The miniport driver can drop any received packets for this link that are larger.

  • HeaderPadding
    Specifies the number of padding bytes at the head of the frame.

  • TailPadding
    Specifies the number of padding bytes at the tail of the frame.

  • 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.

Possible values for SendFramingBits and RecvFramingBits include any the underlying driver returned in response to the OID_WAN_GET_INFOquery.

 

 

Send comments about this topic to Microsoft