]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2const/{IPPROTO_IP,IP_DROP_MEMBERSHIP}.2const: Split IP_DROP_MEMBERSHIP from...
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Nov 2025 22:26:03 +0000 (23:26 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 25 Nov 2025 00:09:38 +0000 (01:09 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2const/IPPROTO_IP.2const
man/man2const/IP_DROP_MEMBERSHIP.2const [new file with mode: 0644]

index ab70f5736e380d5c43b5900a58e7014889cdcf41..c3aa04b4360526a1a2a03a72c08abf294ca628a7 100644 (file)
@@ -75,14 +75,8 @@ fail with the error
 .BR IP_BIND_ADDRESS_NO_PORT (2const)
 .TQ
 .BR IP_BLOCK_SOURCE (2const)
-.TP
-.BR IP_DROP_MEMBERSHIP " (since Linux 1.2)"
-Leave a multicast group.
-Argument is an
-.BR ip_mreqn (2type)
-or
-.BR ip_mreq (2type)
-structure.
+.TQ
+.BR IP_DROP_MEMBERSHIP (2const)
 .TP
 .BR IP_DROP_SOURCE_MEMBERSHIP " (since Linux 2.4.22 / 2.5.68)"
 Leave a source-specific group\[em]that is, stop receiving data from
@@ -90,7 +84,7 @@ a given multicast group that come from a given source.
 If the application has subscribed to multiple sources within
 the same group, data from the remaining sources will still be delivered.
 To stop receiving data from all sources at once, use
-.BR IP_DROP_MEMBERSHIP .
+.BR IP_DROP_MEMBERSHIP (2const).
 .IP
 Argument is an
 .BR ip_mreq_source (2type)
diff --git a/man/man2const/IP_DROP_MEMBERSHIP.2const b/man/man2const/IP_DROP_MEMBERSHIP.2const
new file mode 100644 (file)
index 0000000..e204c6b
--- /dev/null
@@ -0,0 +1,41 @@
+.\" Copyright, the authors of the Linux man-pages project
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH IP_DROP_MEMBERSHIP 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+IP_DROP_MEMBERSHIP
+\-
+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_IP,\~IP_DROP_MEMBERSHIP,
+.BI "               const\~struct\~ip_mreqn\~*" val ,\~sizeof(struct\~ip_mreqn));
+.fi
+.SH DESCRIPTION
+.TP
+.BR IP_DROP_MEMBERSHIP " (since Linux 1.2)"
+Leave a multicast group.
+Argument is an
+.BR ip_mreqn (2type)
+or
+.BR ip_mreq (2type)
+structure.
+.SH ERRORS
+See
+.BR IPPROTO_IP (2const).
+See
+.BR setsockopt (2).
+See
+.BR ip (7).
+.SH SEE ALSO
+.BR IPPROTO_IP (2const),
+.BR ip_mreqn (2type),
+.BR setsockopt (2),
+.BR ip (7)