diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-11-24 23:38:25 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-11-25 01:10:34 +0100 |
| commit | a4087e7b4523ec647fd1c326e8aa6efb3e151cc3 (patch) | |
| tree | 1ee90ed484c2583ba6569a0ec3f0172b69f6c733 | |
| parent | fa9c55124d258432380a119c21fdae4c93944033 (diff) | |
| download | man-pages-a4087e7b4523ec647fd1c326e8aa6efb3e151cc3.tar.gz | |
man/man3type/sockaddr{,_in,_in6}.3type: Split struct sockaddr_in6 from sockaddr_in(3type)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man3type/sockaddr.3type | 4 | ||||
| -rw-r--r-- | man/man3type/sockaddr_in.3type | 28 | ||||
| -rw-r--r-- | man/man3type/sockaddr_in6.3type | 45 |
3 files changed, 52 insertions, 25 deletions
diff --git a/man/man3type/sockaddr.3type b/man/man3type/sockaddr.3type index cdc22ccb9b..b04f042cbd 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 af47ebf2cc..fc55edae28 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 b339d779a4..7a62af088c 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 <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) |
