From: Alejandro Colomar Date: Fri, 21 Nov 2025 22:26:03 +0000 (+0100) Subject: man/man2const/{IPPROTO_IP,IP_DROP_MEMBERSHIP}.2const: Split IP_DROP_MEMBERSHIP from... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378dfa73eabe78aae2dc45291b4f90dc6c1cf8e6;p=thirdparty%2Fman-pages.git man/man2const/{IPPROTO_IP,IP_DROP_MEMBERSHIP}.2const: Split IP_DROP_MEMBERSHIP from IPPROTO_IP(2const) Signed-off-by: Alejandro Colomar --- diff --git a/man/man2const/IPPROTO_IP.2const b/man/man2const/IPPROTO_IP.2const index ab70f5736..c3aa04b43 100644 --- a/man/man2const/IPPROTO_IP.2const +++ b/man/man2const/IPPROTO_IP.2const @@ -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 index 000000000..e204c6b31 --- /dev/null +++ b/man/man2const/IP_DROP_MEMBERSHIP.2const @@ -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 " " /* Definition of " IP* " constants */" +.B #include +.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)