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