Debian Codegraph @

upstream/debian-unstable/man2/IP_BLOCK_SOURCE.2const

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH IP_BLOCK_SOURCE 2const 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 IP_BLOCK_SOURCE
8 \-
9 stop receiving multicast data from a specific source in a given 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_BLOCK_SOURCE,
19 .BI " const\~struct\~ip_mreq_source\~*" val ,
20 .B " sizeof(struct\~ip_mreq_source));"
21 .fi
22 .SH DESCRIPTION
23 Stop receiving multicast data from a specific source in a given group.
24 .P
25 This is valid only after the application has subscribed
26 to the multicast group using either
27 .BR IP_ADD_MEMBERSHIP (2const)
28 or
29 .BR IP_ADD_SOURCE_MEMBERSHIP (2const).
30 .SH ERRORS
31 See
32 .BR IPPROTO_IP (2const).
33 See
34 .BR setsockopt (2).
35 See
36 .BR ip (7).
37 .SH HISTORY
38 Linux 2.4.22, Linux 2.5.68.
39 .SH SEE ALSO
40 .BR IPPROTO_IP (2const),
41 .BR ip_mreq_source (2type),
42 .BR setsockopt (2),
43 .BR ip (7)