sockaddr_in6(3type) — Linux manual page

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | STANDARDS | HISTORY | SEE ALSO | COLOPHON

sockaddr_in6(3type)                                   sockaddr_in6(3type)

NAME         top

       sockaddr_in6, in6_addr - IPv6 socket address

LIBRARY         top

       Standard C library (libc)

SYNOPSIS         top

       #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];
       };

DESCRIPTION         top

       sockaddr_in6
              Describes an IPv6 Internet domain socket address.

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

STANDARDS         top

       POSIX.1-2024.

HISTORY         top

       POSIX.1-2001.

SEE ALSO         top

       sockaddr_in(3type), sockaddr(3type)

COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report
       for this manual page, see
       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
       This page was obtained from the tarball man-pages-6.18.tar.gz
       fetched from
       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
       2026-05-24.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to
       man-pages@man7.org

Linux man-pages 6.18            2025-11-25            sockaddr_in6(3type)

Pages that refer to this page: sockaddr(3type)sockaddr_in(3type)