다음을 통해 공유


NDIS_TCP_IP_CHECKSUM_OFFLOAD (Compact 2013)

3/26/2014

This structure provides checksum task offload information in the NDIS_OFFLOAD structure.

Syntax

typedef struct _NDIS_TCP_IP_CHECKSUM_OFFLOAD {
  struct {
    ULONG  Encapsulation;
    ULONG  IpOptionsSupported:2;
    ULONG  TcpOptionsSupported:2;
    ULONG  TcpChecksum:2;
    ULONG  UdpChecksum:2;
    ULONG  IpChecksum:2;
  } IPv4Transmit;
  struct {
    ULONG  Encapsulation;
    ULONG  IpOptionsSupported:2;
    ULONG  TcpOptionsSupported:2;
    ULONG  TcpChecksum:2;
    ULONG  UdpChecksum:2;
    ULONG  IpChecksum:2;
  } IPv4Receive;
  struct {
    ULONG  Encapsulation;
    ULONG  IpExtensionHeadersSupported:2;
    ULONG  TcpOptionsSupported:2;
    ULONG  TcpChecksum:2;
    ULONG  UdpChecksum:2;
  } IPv6Transmit;
  struct {
    ULONG  Encapsulation;
    ULONG  IpExtensionHeadersSupported:2;
    ULONG  TcpOptionsSupported:2;
    ULONG  TcpChecksum:2;
    ULONG  UdpChecksum:2;
  } IPv6Receive;
} NDIS_TCP_IP_CHECKSUM_OFFLOAD, *PNDIS_TCP_IP_CHECKSUM_OFFLOAD;

Members

IPv4Transmit

A structure within NDIS_TCP_IP_CHECKSUM_OFFLOAD that specifies IPv4 transmit information and that contains the following members:

  • Encapsulation
    Encapsulation settings for IPv4 transmit. For more information about this member, see the following Remarks section.
  • IpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate an IP checksum for an IPv4 send packet that contains IP options or to indicate that this capability is enabled or disabled.
  • TcpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a TCP checksum for an IPv4 send packet that contains TCP options or to indicate that this capability is enabled or disabled.
  • TcpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a TCP checksum for an IPv4 send packet. The TCP/IP transport sets this value to enable this capability or to indicate that this capability is enabled or disabled.
  • UdpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a UDP checksum for an IPv4 send packet or to indicate that this capability is enabled or disabled.
  • IpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate an IP checksum for an IPv4 send packet or to indicate that this capability is enabled or disabled.

IPv4Receive

A structure within NDIS_TCP_IP_CHECKSUM_OFFLOAD that specifies IPv4 receive information and that contains the following members:

  • Encapsulation
    Encapsulation settings for IPv4 receive. For more information about this member, see the following Remarks section.
  • IpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate an IP checksum for an IPv4 receive packet that contains IP options or to indicate that this capability is enabled or disabled.
  • TcpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a TCP checksum for an IPv4 receive packet that contains TCP options or to indicate that this capability is enabled or disabled.
  • TcpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate the TCP checksum for an IPv4 receive packet or to indicate that this capability is enabled or disabled.
  • UdpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate an IPv4 receive packet's UDP checksum or to indicate that this capability is enabled or disabled.
  • IpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate an IP checksum for an IPv4 receive packet or to indicate that this capability is enabled or disabled.

IPv6Transmit

A structure within NDIS_TCP_IP_CHECKSUM_OFFLOAD that specifies IPv6 transmit information and that contains the following members:

  • Encapsulation
    Encapsulation settings for IPv6 transmit. For more information about this member, see the following Remarks section.
  • IpExtensionHeadersSupported
    A ULONG value that a miniport driver sets to indicate that the miniport adapter can calculate checksums on IPv6 packets that contain extension headers.
  • TcpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a TCP checksum for an IPv6 send packet that contains TCP options or to indicate that this capability is enabled or disabled.
  • TcpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a TCP checksum for an IPv6 send packet or to indicate that this capability is enabled or disabled.
  • UdpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a UDP checksum for an IPv6 send packet or to indicate that this capability is enabled or disabled.

IPv6Receive

A structure within NDIS_TCP_IP_CHECKSUM_OFFLOAD that specifies IPv6 receive information and that contains the following members:

  • Encapsulation
    Encapsulation settings for IPv6 receive. For more information about this member, see the following Remarks section.
  • IpExtensionHeadersSupported
    A ULONG value that a miniport driver sets to indicate that the miniport adapter can validate checksums on IPv6 packets that contain extension headers.
  • TcpOptionsSupported
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can calculate a checksum for an IPv6 receive packet whose TCP header contains TCP options or to indicate that this capability is enabled or disabled.
  • TcpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate an IPv6 receive packet's TCP checksum or to indicate that this capability is enabled or disabled.
  • UdpChecksum
    A ULONG value that a miniport driver sets to indicate that a miniport adapter can validate a UDP checksum for an IPv6 receive packet or to indicate that this capability is enabled or disabled.

Remarks

The NDIS_TCP_IP_CHECKSUM_OFFLOAD structure is used in the Checksum member of the NDIS_OFFLOAD structure. The NDIS_TCP_IP_CHECKSUM_OFFLOAD structure specifies the current or supported services that a miniport adapter provides for calculating IP, TCP, or UDP checksums (or them all) for send packets and validating such checksums for receive packets.

NDIS_OFFLOAD is used in the NDIS_MINIPORT_ADAPTER_OFFLOAD_ATTRIBUTES structure, NDIS_BIND_PARAMETERS structure, NDIS_FILTER_ATTACH_PARAMETERS structure, OID_TCP_OFFLOAD_CURRENT_CONFIG OID, and the NDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG status indication.For OID_TCP_OFFLOAD_CURRENT_CONFIG, the NDIS_OFFLOAD structure specifies the task offload capabilities that a miniport adapter supports. If the current offloads capabilities change, a miniport driver reports the new capabilities in an NDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG status indication.

The Encapsulation members of NDIS_TCP_IP_CHECKSUM_OFFLOAD define the checksum offload encapsulation settings for the miniport adapter.

In response to an OID_TCP_OFFLOAD_CURRENT_CONFIG query request, NDIS provides a bitwise OR of the encapsulation flags, which indicate the supported encapsulation settings, in each of the Encapsulation members. Miniport drivers must provide Ethernet encapsulation (NDIS_ENCAPSULATION_IEEE_802_3). The other types of encapsulation are optional.

For an NDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG status indication, the miniport driver provides a bitwise OR of the encapsulation flags, which indicate the current capabilities, in each of the Encapsulation members.

The following flags are defined for the Encapsulation members:

  • NDIS_ENCAPSULATION_NOT_SUPPORTED
    Specifies that no encapsulation offload is supported.
  • NDIS_ENCAPSULATION_NULL
    Specifies NULL encapsulation.
  • NDIS_ENCAPSULATION_IEEE_802_3
    Specifies IEEE 802.3 encapsulation.
  • NDIS_ENCAPSULATION_IEEE_802_3_P_AND_Q
    Specifies IEEE 802.3p and IEEE 802.3q encapsulation.
  • NDIS_ENCAPSULATION_IEEE_802_3_P_AND_Q_IN_OOB
    Specifies that IEEE 802.3p and IEEE 802.3q encapsulation settings are specified in the NetBufferListInfo member of each NET_BUFFER_LIST structure.
  • NDIS_ENCAPSULATION_IEEE_LLC_SNAP_ROUTED
    Specifies logical link control (LLC) encapsulation for routed protocols, as described in RFC 1483. This flag is also used to indicate Ethernet LLC/SNAP encapsulation.

The meaning of the values in the IpOptionsSupported, TcpOptionsSupported, IpExtensionHeadersSupported, TcpChecksum, UdpChecksum, and IpChecksum members of NDIS_TCP_IP_CHECKSUM_OFFLOAD depends on which OID or status indication includes the task offload structure: These members can have one of the following values:

  • NDIS_OFFLOAD_NOT_SUPPORTED
    In OID_TCP_OFFLOAD_CURRENT_CONFIG, this value specifies that the miniport adapter does not support the feature that the member specifies.
  • NDIS_OFFLOAD_SUPPORTED
    In OID_TCP_OFFLOAD_CURRENT_CONFIG, this value specifies that the miniport adapter supports the feature that the member specifies.
  • NDIS_OFFLOAD_SET_ON
    In the NDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG status indication, this value specifies that the feature that the member specifies is enabled.

Requirements

Header

ntddndis.h

See Also

Reference

NDIS TCP/IP Offload Structures
NDIS_BIND_PARAMETERS
NDIS_FILTER_ATTACH_PARAMETERS
NDIS_MINIPORT_ADAPTER_OFFLOAD_ATTRIBUTES
NDIS_OFFLOAD
NDIS_OID_REQUEST
NDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG
NET_BUFFER_LIST
OID_TCP_OFFLOAD_CURRENT_CONFIG