sockaddr_in6(3type)

sockaddr_in63type

Ipv6 socket address

Usage

#include <netinet/in.h>

struct sockaddr_in6 { sa_family_t sin6_family; /* AF_INET6 */ in_port_t sin6_port; /* Port number */ uint32_t sin6_flowinfo; /* IPv6 flow info */ struct in6_addr sin6_addr; /* IPv6 address */ uint32_t sin6_scope_id; /* Set of interfaces for a scope */ };

struct in6_addr { uint8_t s6_addr[16]; };

Library

Standard C library (libc)

Overview

sockaddr_in6

Describes an IPv6 Internet domain socket address.

in6_addr

Contains a 128-bit IPv6 address, stored in network byte order.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Standards

POSIX.1-2024.

History

POSIX.1-2001.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.