IPSEC_TUNNEL_ENDPOINTS2 structure (ipsectypes.h)

The IPSEC_TUNNEL_ENDPOINTS2 structure is used to store end points of a tunnel mode SA. IPSEC_TUNNEL_ENDPOINTS1 is available. For Windows Vista, IPSEC_TUNNEL_ENDPOINTS0 is available.

Syntax

typedef struct IPSEC_TUNNEL_ENDPOINTS2_ {
  FWP_IP_VERSION         ipVersion;
  union {
    UINT32 localV4Address;
    UINT8  localV6Address[16];
  };
  union {
    UINT32 remoteV4Address;
    UINT8  remoteV6Address[16];
  };
  UINT64                 localIfLuid;
  wchar_t                *remoteFqdn;
  UINT32                 numAddresses;
  IPSEC_TUNNEL_ENDPOINT0 *remoteAddresses;
} IPSEC_TUNNEL_ENDPOINTS2;

Members

ipVersion

Type: FWP_IP_VERSION

Specifies the IP version. In tunnel mode, this is the version of the outer header.

localV4Address

Type: UINT32

case(FWP_IP_VERSION_V4)

localV6Address[16]

Type: UINT8[16]

case(FWP_IP_VERSION_V6)

switch_type(FWP_IP_VERSION), switch_is(ipVersion)

Tagged union containing the remote tunnel end point address.

remoteV4Address

Type: UINT32

case(FWP_IP_VERSION_V4)

remoteV6Address[16]

Type: UINT8[16]

case(FWP_IP_VERSION_V6)

localIfLuid

Type: UINT64

Optional LUID of the local interface corresponding to the local address specified above.

remoteFqdn

Type: wchar_t*

Configuration of multiple remote addresses and fully qualified domain names for asymmetric tunneling support.

numAddresses

Type: UINT32

The number of remote tunnel addresses.

remoteAddresses

Type: IPSEC_TUNNEL_ENDPOINT0*

[size_is(numAddresses)]

The remote tunnel end point address information.

Remarks

For the unnamed union containing the local tunnel end point address, switch_type(FWP_IP_VERSION), switch_is(ipVersion).

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header ipsectypes.h

See also

FWP_IP_VERSION

Windows Filtering Platform API structures