Share via


in6_addr structure

The in6_addr structure represents an IPv6 address.

Syntax

typedef struct in6_addr {
  union {
    u_char  Byte[16];
    u_short Word[8];
  } u;
} IN6_ADDR, *PIN6_ADDR, FAR *LPIN6_ADDR;

Members

  • u

    • Byte
      An IPv6 address formatted as an array of sixteen u_chars.

    • Word
      An IPv6 address formatted as an array of eight u_shorts.

Remarks

The in6_addr structure is used with IPv6 addresses.

The in6_addr structure is the IPv6 equivalent of the IPv4-based in_addr structure.

Note  The IN6_ADDR, PIN6_ADDR, and LPIN6_ADDR derived structures are only defined on the Windows SDK released with Windows Vista and later. The IN6_ADDR, PIN6_ADDR, and LPIN6_ADDR derived structures are defined in the In6addr.h header file. The in6_addr structure should be used on earlier versions of the Windows SDK.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

In6addr.h; Ws2tcpip.h on Windows Server 2003 and Windows XP

See also

in_addr

inet_ntoa

SOCKADDR