sockaddr_in6(3type)

πŸ’– sockaddr_in6 β€” the IPv6 socket address glow-up πŸ’–

okay bestie, so this is the manual page for sockaddr_in6 (that's the man page name, sockaddr_in6(3type) if you're keeping score ✨). It's the 3type page, meaning it's all about types β€” the little structs you pass around when you're doing IPv6 socket things. Let's get into it, no cap.


🌸 NAME 🌸

sockaddr_in6, in6_addr β€” IPv6 socket address


πŸ“š LIBRARY πŸ“š

Standard C library (libc) β€” the classic, the icon, the one that's just there 🫢


✨ SYNOPSIS ✨

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

literally just two structs and a dream πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

  • sockaddr_in6 β€” Describes an IPv6 Internet domain socket address. it's giving "here is where I live on the IPv6 internet, respectfully" 🏠✨
  • in6_addr β€” Contains a 128-bit IPv6 address, stored in network byte order. yes bestie, network byte order, do NOT forget that or you will be sad 😭

πŸ‘‘ STANDARDS πŸ‘‘

POSIX.1-2024. we're standardized, we're official, we're that girl πŸŽ€


πŸ’« HISTORY πŸ’«

POSIX.1-2001. been iconic since the early 2000s, fr fr ⭐


🌈 SEE ALSO 🌈


🫢 reminder: all the literal stuff up there β€” the field names, the types, AF_INET6, uint8_t s6_addr[16] β€” is exactly what you type. don't freestyle it. iykyk πŸ’€

and that's the whole vibe check! this page came to you from Linux man-pages 6.20, dated 2025-11-25 β€” slay, periodt, bye bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms