From: Alejandro Colomar Date: Fri, 21 Nov 2025 23:18:43 +0000 (+0100) Subject: man/man2const/{IPPROTO_IP,IP_DROP_SOURCE_MEMBERSHIP}.2const: Split IP_DROP_SOURCE_MEM... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c5ee74be2acc3a9cb5f784faec69170dd569dc4;p=thirdparty%2Fman-pages.git man/man2const/{IPPROTO_IP,IP_DROP_SOURCE_MEMBERSHIP}.2const: Split IP_DROP_SOURCE_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 c3aa04b43..df7e9ef40 100644 --- a/man/man2const/IPPROTO_IP.2const +++ b/man/man2const/IPPROTO_IP.2const @@ -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 index 000000000..5a55bafa0 --- /dev/null +++ b/man/man2const/IP_DROP_SOURCE_MEMBERSHIP.2const @@ -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 " " /* Definition of " IP* " constants */" +.B #include +.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)