Skip to content

Latest commit

 

History

History
198 lines (132 loc) · 5.25 KB

ns-ws2ipdef-sockaddr_in6_lh.md

File metadata and controls

198 lines (132 loc) · 5.25 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:ws2ipdef.sockaddr_in6
SOCKADDR_IN6_LH (ws2ipdef.h)
The SOCKADDR_IN6_LH (ws2ipdef.h) structure specifies a transport address and port for the AF_INET6 address family.
*LPSOCKADDR_IN6
*LPSOCKADDR_IN6_LH
*PSOCKADDR_IN6
*PSOCKADDR_IN6_LH
PSOCKADDR_IN6
PSOCKADDR_IN6 structure pointer [Network Drivers Starting with Windows Vista]
SOCKADDR_IN6
SOCKADDR_IN6 structure [Network Drivers Starting with Windows Vista]
SOCKADDR_IN6_LH
netvista.sockaddr_in6
ws2ipdef/PSOCKADDR_IN6
ws2ipdef/SOCKADDR_IN6
wskref_7e70684f-ef0d-45c5-8075-3e9b6fa87337.xml
netvista\sockaddr_in6.htm
NetVista
ef2955d2-5dc1-420b-a9e0-32a584059d5a
08/16/2022
*LPSOCKADDR_IN6, *LPSOCKADDR_IN6_LH, *PSOCKADDR_IN6, *PSOCKADDR_IN6_LH, PSOCKADDR_IN6, PSOCKADDR_IN6 structure pointer [Network Drivers Starting with Windows Vista], SOCKADDR_IN6, SOCKADDR_IN6 structure [Network Drivers Starting with Windows Vista], SOCKADDR_IN6_LH, netvista.sockaddr_in6, ws2ipdef/PSOCKADDR_IN6, ws2ipdef/SOCKADDR_IN6, wskref_7e70684f-ef0d-45c5-8075-3e9b6fa87337.xml
ws2ipdef.h
Ws2ipdef.h
Windows
Available in Windows Vista and later versions of the Windows operating systems.
Windows
SOCKADDR_IN6_LH, *PSOCKADDR_IN6_LH, *LPSOCKADDR_IN6_LH
19H1
sockaddr_in6
ws2ipdef/sockaddr_in6
PSOCKADDR_IN6_LH
ws2ipdef/PSOCKADDR_IN6_LH
SOCKADDR_IN6_LH
ws2ipdef/SOCKADDR_IN6_LH
c++
APIRef
kbSyntax
HeaderDef
Ws2ipdef.h
SOCKADDR_IN6

SOCKADDR_IN6_LH structure

-description

The SOCKADDR_IN6 structure specifies a transport address and port for the AF_INET6 address family.

-struct-fields

-field sin6_family

The address family for the transport address. This member should always be set to AF_INET6.

-field sin6_port

A transport protocol port number.

-field sin6_flowinfo

The IPv6 flow information.

-field sin6_addr

An IN6_ADDR structure that contains an IPv6 transport address.

-field sin6_scope_id

A ULONG representation of the IPv6 scope identifier that is defined in the sin6_scope_struct member.

-field sin6_scope_struct

A SCOPE_ID structure that contains the scope identifier for the IPv6 transport address. The SCOPE_ID structure is defined as follows:

typedef struct {
  union {
    struct {
      ULONG  Zone : 28;
      ULONG  Level : 4;
    };
    ULONG  Value;
  };
} SCOPE_ID, *PSCOPE_ID;

Zone

The zone index that identifies the zone to which the transport address pertains. Zones of the different scopes are instantiated as follows:

  • Each interface on a node comprises a single zone of interface-local scope.
  • Each link, and the interfaces attached to that link, comprise a single zone of link-local scope.
  • There is a single zone of global scope that comprises all of the links and interfaces in the Internet.
  • The boundaries of zones of scope other than interface-local, link-local, and global are defined by network administrators.
A value of zero specifies the default zone.

Level

The scope of the IPv6 transport address. This scope must be the same as the IPv6 scope value that is embedded in the IPv6 transport address. This member can be one of the following:

ScopeLevelInterface

The transport address has interface-local scope.

ScopeLevelLink

The transport address has link-local scope.

ScopeLevelSubnet

The transport address has subnet-local scope.

ScopeLevelAdmin

The transport address has admin-local scope.

ScopeLevelSite

The transport address has site-local scope.

ScopeLevelOrganization

The transport address has organization-local scope.

ScopeLevelGlobal

The transport address has global scope.

Value

A ULONG representation of the IPv6 scope identifier.

-remarks

All of the data in the SOCKADDR_IN6 structure, except for the address family, must be specified in network-byte-order (big-endian).

The size of the SOCKADDR_IN6 structure is too large to fit in the memory space that is provided by a SOCKADDR structure. For a structure that is guaranteed to be large enough to contain a transport address for all possible address families, see SOCKADDR_STORAGE.

-see-also

AF_INET6

IN6_ADDR

SOCKADDR

SOCKADDR_STORAGE