Поделиться через


OID_WAN_GET_LINK_INFO

The OID_WAN_GET_LINK_INFO OID requests the miniport driver to return information about the current state of a link formatted as an NDIS_WAN_GET_LINK_INFO structure, defined as follows:

typedef struct _NDIS_WAN_GET_LINK_INFO {         IN NDIS_HANDLE NdisLinkHandle;
         OUT ULONG MaxSendFrameSize;
         OUT ULONG MaxRecvFrameSize;
         OUT ULONG HeaderPadding;
         OUT ULONG TailPadding;
         OUT ULONG SendFramingBits;
         OUT ULONG RecvFramingBits;
         OUT ULONG SendCompressionBits;
         OUT ULONG RecvCompressionBits;
         OUT ULONG SendACCM;
         OUT ULONG RecvACCM;
 } NDIS_WAN_GET_LINK_INFO, *PNDIS_WAN_GET_LINK_INFO;

The members of this structure contain the following information:

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

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

  • MaxRecvFrameSize
    Specifies the largest packet, not including the driver's padding, that will be received on the wire. The driver can drop any packets 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 1, 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 driver returned in response to the OID_WAN_GET_INFOquery.

 

 

Send comments about this topic to Microsoft