]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2const/{IPPROTO_IP,IP_DROP_SOURCE_MEMBERSHIP}.2const: Split IP_DROP_SOURCE_MEM...
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Nov 2025 23:18:43 +0000 (00:18 +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_SOURCE_MEMBERSHIP.2const [new file with mode: 0644]

index c3aa04b4360526a1a2a03a72c08abf294ca628a7..df7e9ef408fa4b591348ea1cb9f8a831823e1710 100644 (file)
@@ -77,18 +77,8 @@ fail with the error
 .BR IP_BLOCK_SOURCE (2const)
 .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
-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 (2const).
-.IP
-Argument is an
-.BR ip_mreq_source (2type)
-structure.
+.TQ
+.BR IP_DROP_SOURCE_MEMBERSHIP (2const)
 .TP
 .BR IP_FREEBIND " (since Linux 2.4)"
 .\" Precisely: since Linux 2.4.0-test10
diff --git a/man/man2const/IP_DROP_SOURCE_MEMBERSHIP.2const b/man/man2const/IP_DROP_SOURCE_MEMBERSHIP.2const
new file mode 100644 (file)
index 0000000..5a55baf
--- /dev/null
@@ -0,0 +1,46 @@
+.\" Copyright, the authors of the Linux man-pages project
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH IP_DROP_SOURCE_MEMBERSHIP 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+IP_DROP_SOURCE_MEMBERSHIP
+\-
+leave a source-specific 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_SOURCE_MEMBERSHIP,
+.BI "               const\~struct\~ip_mreq_source\~*" val ,
+.B "               sizeof(struct\~ip_mreq_source));"
+.fi
+.SH DESCRIPTION
+.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
+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 (2const).
+.IP
+Argument is an
+.BR ip_mreq_source (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_mreq_source (2type),
+.BR setsockopt (2),
+.BR ip (7)