From: Alejandro Colomar Date: Mon, 1 Dec 2025 10:44:44 +0000 (+0100) Subject: man/man2const/{IPPROTO_IPV6,IPV6_ADDRFORM}.2const: Split IPV6_ADDRFORM from IPPROTO_I... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed37a599cc5a389e5cb438fc75e4b18e31423e7;p=thirdparty%2Fman-pages.git man/man2const/{IPPROTO_IPV6,IPV6_ADDRFORM}.2const: Split IPV6_ADDRFORM from IPPROTO_IPV6(2const) Signed-off-by: Alejandro Colomar --- diff --git a/man/man2const/IPPROTO_IPV6.2const b/man/man2const/IPPROTO_IPV6.2const index ad5f5aa8f..fc8f3d11c 100644 --- a/man/man2const/IPPROTO_IPV6.2const +++ b/man/man2const/IPPROTO_IPV6.2const @@ -105,19 +105,7 @@ A boolean integer flag is zero when it is false, otherwise true. .P The following socket options are supported. .TP -.B IPV6_ADDRFORM -Turn an -.B AF_INET6 -socket into a socket of a different address family. -Only -.B AF_INET -is currently supported for that. -It is allowed only for IPv6 sockets -that are connected and bound to a v4-mapped-on-v6 address. -The argument is a pointer to an integer containing -.BR AF_INET . -This is useful to pass v4-mapped sockets as file descriptors to -programs that don't know how to deal with the IPv6 API. +.BR IPV6_ADDRFORM (2const) .TP .B IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP Control membership in multicast groups. diff --git a/man/man2const/IPV6_ADDRFORM.2const b/man/man2const/IPV6_ADDRFORM.2const new file mode 100644 index 000000000..45901d4ed --- /dev/null +++ b/man/man2const/IPV6_ADDRFORM.2const @@ -0,0 +1,44 @@ +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH IPV6_ADDRFORM 2const (date) "Linux man-pages (unreleased)" +.SH NAME +IPV6_ADDRFORM +\- +turn an AF_INET6 socket into a socket of a different address family +.SH LIBRARY +Standard C library +.RI ( libc ,\~ \-lc ) +.SH SYNOPSIS +.nf +.BR "#include " " /* Definition of " IP* " constants */" +.B #include +.P +.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_ADDRFORM, +.B " &(const\~int){AF_INET},\~sizeof(int));" +.fi +.SH DESCRIPTION +.TP +.B IPV6_ADDRFORM +Turn an +.B AF_INET6 +socket into a socket of a different address family. +Only +.B AF_INET +is currently supported for that. +It is allowed only for IPv6 sockets +that are connected and bound to a v4-mapped-on-v6 address. +The argument is a pointer to an integer containing +.BR AF_INET . +This is useful to pass v4-mapped sockets as file descriptors to +programs that don't know how to deal with the IPv6 API. +.SH ERRORS +See +.BR setsockopt (2). +See +.BR ipv6 (7). +.SH SEE ALSO +.BR IPPROTO_IPV6 (2const), +.BR setsockopt (2), +.BR ipv6 (7)