Debian Codegraph @

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

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH IPV6_ADD_MEMBERSHIP 2const 2025-12-02 "Linux man-pages 6.18"
6 .SH NAME
7 IPV6_ADD_MEMBERSHIP,
8 IPV6_DROP_MEMBERSHIP
9 \-
10 join or leave a multicast group
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc ,\~ \-lc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <netinet/in.h>" " /* Definition of " IP* " constants */"
17 .B #include <sys/socket.h>
18 .P
19 .BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_ADD_MEMBERSHIP,
20 .BI " const\~struct\~ipv6_mreq\~*" val ,\~sizeof(struct\~ipv6_mreq));
21 .BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_DROP_MEMBERSHIP,
22 .BI " const\~struct\~ipv6_mreq\~*" val ,\~sizeof(struct\~ipv6_mreq));
23 .fi
24 .SH DESCRIPTION
25 Join or leave a multicast group.
26 .P
27 See
28 .BR IP_ADD_MULTICAST (2const)
29 and
30 .BR IP_DROP_MULTICAST (2const).
31 .SH ERRORS
32 See
33 .BR IPPROTO_IPV6 (2const).
34 See
35 .BR setsockopt (2).
36 See
37 .BR ipv6 (7).
38 .SH SEE ALSO
39 .BR IPPROTO_IPV6 (2const),
40 .BR setsockopt (2),
41 .BR ipv6 (7)