]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2const/{IPPROTO_IPV6,IPV6_MULTICAST_LOOP}.2const: Split IPV6_MULTICAST_LOOP...
authorAlejandro Colomar <alx@kernel.org>
Mon, 1 Dec 2025 21:38:58 +0000 (22:38 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 2 Dec 2025 00:08:28 +0000 (01:08 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2const/IPPROTO_IPV6.2const
man/man2const/IPV6_MULTICAST_LOOP.2const [new file with mode: 0644]

index d30bc80207548c50236fdd76c9b64daa68632fe1..14bbad81bb1c0ca082b3554a0138c9ba64d31bb6 100644 (file)
@@ -118,10 +118,8 @@ The following socket options are supported.
 .BR IPV6_MULTICAST_HOPS (2const)
 .TQ
 .BR IPV6_MULTICAST_IF (2const)
-.TP
-.B IPV6_MULTICAST_LOOP
-Control whether the socket sees multicast packets that it has send itself.
-Argument is a pointer to boolean.
+.TQ
+.BR IPV6_MULTICAST_LOOP (2const)
 .TP
 .BR IPV6_RECVPKTINFO " (since Linux 2.6.14)"
 Set delivery of the
diff --git a/man/man2const/IPV6_MULTICAST_LOOP.2const b/man/man2const/IPV6_MULTICAST_LOOP.2const
new file mode 100644 (file)
index 0000000..2acf0b1
--- /dev/null
@@ -0,0 +1,38 @@
+.\" Copyright, the authors of the Linux man-pages project
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH IPV6_MULTICAST_LOOP 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+IPV6_MULTICAST_LOOP
+\-
+loop back sent multicast packets to local sockets
+.SH LIBRARY
+Standard C library
+.RI ( libc ,\~ \-lc )
+.SH SYNOPSIS
+.nf
+.BR "#include <netinet/in.h>" "  /* Definition of " IP* " constants */"
+.B #include <sys/socket.h>
+.P
+.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MULTICAST_LOOP,
+.BI "               const\~int\~*" enable ,\~sizeof(int));
+.BI int\~getsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MULTICAST_LOOP,
+.BI "               int\~*" enabled ,\~sizeof(int));
+.fi
+.SH DESCRIPTION
+.TP
+.B IPV6_MULTICAST_LOOP
+Control whether the socket sees multicast packets that it has send itself.
+Argument is a pointer to boolean.
+.SH ERRORS
+See
+.BR IPPROTO_IPV6 (2const).
+See
+.BR setsockopt (2).
+See
+.BR ipv6 (7).
+.SH SEE ALSO
+.BR IPPROTO_IPV6 (2const),
+.BR setsockopt (2),
+.BR ipv6 (7)