]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3type/sockaddr{,_in,_in6}.3type: Split struct sockaddr_in6 from sockaddr_in...
authorAlejandro Colomar <alx@kernel.org>
Mon, 24 Nov 2025 22:38:25 +0000 (23:38 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 25 Nov 2025 00:10:34 +0000 (01:10 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3type/sockaddr.3type
man/man3type/sockaddr_in.3type
man/man3type/sockaddr_in6.3type

index cdc22ccb9ba4cada195c20dc75f256e167c303cb..b04f042cbd7858066deb25ad0c95f19821db6108 100644 (file)
@@ -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
index af47ebf2cc230e6ad3327ffb54c53a3e089caabd..fc55edae2823ab17722a115fd80dc1c1473981a3 100644 (file)
@@ -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)
index b339d779a4540206602e6ab82a33beae7f92a2aa..7a62af088c20c6cc9dae20ae00c3452a9e1677f4 100644 (file)
@@ -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 <netinet/in.h>
+.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)