| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH IP_DROP_SOURCE_MEMBERSHIP 2const 2025-11-25 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
IP_DROP_SOURCE_MEMBERSHIP |
| 8 |
\- |
| 9 |
leave a source-specific multicast group |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ,\~ \-lc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.BR "#include <netinet/in.h>" " /* Definition of " IP* " constants */" |
| 16 |
.B #include <sys/socket.h> |
| 17 |
.P |
| 18 |
.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IP,\~IP_DROP_SOURCE_MEMBERSHIP, |
| 19 |
.BI " const\~struct\~ip_mreq_source\~*" val , |
| 20 |
.B " sizeof(struct\~ip_mreq_source));" |
| 21 |
.fi |
| 22 |
.SH DESCRIPTION |
| 23 |
Leave a source-specific group; |
| 24 |
that is, |
| 25 |
stop receiving data |
| 26 |
from a given multicast group |
| 27 |
that comes from a given source. |
| 28 |
.P |
| 29 |
If the application has subscribed to |
| 30 |
multiple sources within the same group, |
| 31 |
data from the remaining sources will still be delivered. |
| 32 |
To stop receiving data from all sources at once, |
| 33 |
use |
| 34 |
.BR IP_DROP_MEMBERSHIP (2const). |
| 35 |
.SH ERRORS |
| 36 |
See |
| 37 |
.BR IPPROTO_IP (2const). |
| 38 |
See |
| 39 |
.BR setsockopt (2). |
| 40 |
See |
| 41 |
.BR ip (7). |
| 42 |
.SH HISTORY |
| 43 |
Linux 2.4.22, Linux 2.5.68. |
| 44 |
.SH SEE ALSO |
| 45 |
.BR IPPROTO_IP (2const), |
| 46 |
.BR ip_mreq_source (2type), |
| 47 |
.BR setsockopt (2), |
| 48 |
.BR ip (7) |