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

index fc8f3d11c360b6c9481dadf7b6512ae7a3290cb4..bd9bed2b773c0d85911725dad8812cdc20a4861d 100644 (file)
@@ -106,11 +106,10 @@ A boolean integer flag is zero when it is false, otherwise true.
 The following socket options are supported.
 .TP
 .BR IPV6_ADDRFORM (2const)
-.TP
-.B IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP
-Control membership in multicast groups.
-Argument is a pointer to a
-.IR "struct ipv6_mreq" .
+.TQ
+.BR IPV6_ADD_MEMBERSHIP (2const)
+.TQ
+.BR IPV6_DROP_MEMBERSHIP (2const)
 .TP
 .B IPV6_MTU
 .BR getsockopt ():
diff --git a/man/man2const/IPV6_ADD_MEMBERSHIP.2const b/man/man2const/IPV6_ADD_MEMBERSHIP.2const
new file mode 100644 (file)
index 0000000..86126cc
--- /dev/null
@@ -0,0 +1,45 @@
+.\" Copyright, the authors of the Linux man-pages project
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH IPV6_ADD_MEMBERSHIP 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+IPV6_ADD_MEMBERSHIP,
+IPV6_DROP_MEMBERSHIP
+\-
+join or leave a multicast group
+.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_ADD_MEMBERSHIP,
+.BI "               const\~struct\~ipv6_mreq\~*" val ,\~sizeof(struct\~ipv6_mreq));
+.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_DROP_MEMBERSHIP,
+.BI "               const\~struct\~ipv6_mreq\~*" val ,\~sizeof(struct\~ipv6_mreq));
+.fi
+.SH DESCRIPTION
+.TP
+.B IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP
+Control membership in multicast groups.
+Argument is a pointer to a
+.IR "struct ipv6_mreq" .
+.P
+See
+.BR IP_ADD_MULTICAST (2const)
+and
+.BR IP_DROP_MULTICAST (2const).
+.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)