다음을 통해 공유


NDIS_WAN_SET_LINK_INFO (Windows Embedded CE 6.0)

1/6/2010

The NDIS_WAN_SET_LINK_INFO structure formats information for OID_WAN_SET_LINK_INFO. This object identifier requests the miniport driver to return information about the current state of a link.

The following syntax defines NDIS_WAN_SET_LINK_INFO.

Syntax

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

Members

  • NdisLinkHandle
    [in] Identifies the link. This is the handle the miniport driver supplied in its initial line-up indication for this link.
  • MaxSendFrameSize
    [in] 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
    [in] Specifies the largest net packet, not including the driver's padding that the protocol will receive next. 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
    [in] Specifies the number of padding bytes at the head of the frame.
  • TailPadding
    [in] Specifies the number of padding bytes at the tail of the frame.
  • SendFramingBits
    [in] 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_WAN_SETTINGS. The proper NLPID and framing format should be used based on the framing bits wherever applicable.

    Framing Bit Setting Description

    RecvFramingBits

    Specifies receive-framing bits indicating the type of framing that should be received. Possible values for RecvFramingBits include any the underlying driver returned in response to the OID_WAN_GET_INFO query.

    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

None.

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Structures
OID_WAN_GET_INFO
OID_WAN_GET_LINK_INFO
OID_WAN_SET_LINK_INFO