From: Alejandro Colomar Date: Mon, 24 Nov 2025 22:38:25 +0000 (+0100) Subject: man/man3type/sockaddr{,_in,_in6}.3type: Split struct sockaddr_in6 from sockaddr_in... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4087e7b4523ec647fd1c326e8aa6efb3e151cc3;p=thirdparty%2Fman-pages.git man/man3type/sockaddr{,_in,_in6}.3type: Split struct sockaddr_in6 from sockaddr_in(3type) Signed-off-by: Alejandro Colomar --- diff --git a/man/man3type/sockaddr.3type b/man/man3type/sockaddr.3type index cdc22ccb9..b04f042cb 100644 --- a/man/man3type/sockaddr.3type +++ b/man/man3type/sockaddr.3type @@ -58,7 +58,9 @@ Describes a socket's protocol family. This is an unsigned integer type. .SS Internet domain sockets See -.BR sockaddr_in (3type). +.BR sockaddr_in (3type) +and +.BR sockaddr_in6 (3type). .SS UNIX domain sockets .TP .I sockaddr_un diff --git a/man/man3type/sockaddr_in.3type b/man/man3type/sockaddr_in.3type index af47ebf2c..fc55edae2 100644 --- a/man/man3type/sockaddr_in.3type +++ b/man/man3type/sockaddr_in.3type @@ -4,10 +4,10 @@ .\" .TH sockaddr_in 3type (date) "Linux man-pages (unreleased)" .SH NAME -sockaddr_in, sockaddr_in6, -in_addr, in6_addr, in_addr_t, in_port_t +sockaddr_in, +in_addr, in_addr_t, in_port_t \- -IP socket address +IPv4 socket address .SH LIBRARY Standard C library .RI ( libc ) @@ -21,22 +21,10 @@ Standard C library .BR " struct in_addr sin_addr;" " /* IPv4 address */" .B }; .P -.B struct sockaddr_in6 { -.BR " sa_family_t sin6_family;" " /* " AF_INET6 " */" -.BR " in_port_t sin6_port;" " /* Port number */" -.BR " uint32_t sin6_flowinfo;" " /* IPv6 flow info */" -.BR " struct in6_addr sin6_addr;" " /* IPv6 address */" -.BR " uint32_t sin6_scope_id;" " /* Set of interfaces for a scope */" -.B }; -.P .B struct in_addr { .B " in_addr_t s_addr;" .B }; .P -.B struct in6_addr { -.B " uint8_t s6_addr[16];" -.B }; -.P .B typedef uint32_t in_addr_t; .B typedef uint16_t in_port_t; .EE @@ -49,16 +37,10 @@ Describes an IPv4 Internet domain socket address. and .I .sin_addr are stored in network byte order. -.TP -.I sockaddr_in6 -Describes an IPv6 Internet domain socket address. -.TP -.I in6_addr -Contains a 128-bit IPv6 address, -stored in network byte order. .SH STANDARDS POSIX.1-2024. .SH HISTORY POSIX.1-2001. .SH SEE ALSO -.BR sockaddr (3type) +.BR sockaddr (3type), +.BR sockaddr_in6 (3type) diff --git a/man/man3type/sockaddr_in6.3type b/man/man3type/sockaddr_in6.3type index b339d779a..7a62af088 100644 --- a/man/man3type/sockaddr_in6.3type +++ b/man/man3type/sockaddr_in6.3type @@ -1 +1,44 @@ -.so man3type/sockaddr_in.3type +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH sockaddr_in6 3type (date) "Linux man-pages (unreleased)" +.SH NAME +sockaddr_in6, +in6_addr +\- +IPv6 socket address +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.EX +.B #include +.P +.B struct sockaddr_in6 { +.BR " sa_family_t sin6_family;" " /* " AF_INET6 " */" +.BR " in_port_t sin6_port;" " /* Port number */" +.BR " uint32_t sin6_flowinfo;" " /* IPv6 flow info */" +.BR " struct in6_addr sin6_addr;" " /* IPv6 address */" +.BR " uint32_t sin6_scope_id;" " /* Set of interfaces for a scope */" +.B }; +.P +.B struct in6_addr { +.B " uint8_t s6_addr[16];" +.B }; +.EE +.SH DESCRIPTION +.TP +.I sockaddr_in6 +Describes an IPv6 Internet domain socket address. +.TP +.I in6_addr +Contains a 128-bit IPv6 address, +stored in network byte order. +.SH STANDARDS +POSIX.1-2024. +.SH HISTORY +POSIX.1-2001. +.SH SEE ALSO +.BR sockaddr_in (3type), +.BR sockaddr (3type)