IPSEC_TUNNEL_ENDPOINTS1 structure (ipsectypes.h)

The IPSEC_TUNNEL_ENDPOINTS1 structure is used to store end points of a tunnel mode SA. IPSEC_TUNNEL_ENDPOINTS2 is available.

Syntax

typedef struct IPSEC_TUNNEL_ENDPOINTS1_ {
  FWP_IP_VERSION ipVersion;
  union {
    UINT32 localV4Address;
    UINT8  localV6Address[16];
  };
  union {
    UINT32 remoteV4Address;
    UINT8  remoteV6Address[16];
  };
  UINT64         localIfLuid;
} IPSEC_TUNNEL_ENDPOINTS1;

Members

ipVersion

An FWP_IP_VERSION value that specifies the IP version. In tunnel mode, this is the version of the outer header.

localV4Address

case(FWP_IP_VERSION_V4)

localV6Address[16]

case(FWP_IP_VERSION_V6)

switch_type(FWP_IP_VERSION), switch_is(ipVersion)

Tagged union containing the remote tunnel end point address.

remoteV4Address

case(FWP_IP_VERSION_V4)

remoteV6Address[16]

case(FWP_IP_VERSION_V6)

localIfLuid

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

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 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header ipsectypes.h

See also

FWP_IP_VERSION

Windows Filtering Platform API Structures