Debian Codegraph @

upstream/debian-unstable/man2/IPV6_MULTICAST_LOOP.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_MULTICAST_LOOP 2const 2026-01-05 "Linux man-pages 6.18"
6 .SH NAME
7 IPV6_MULTICAST_LOOP
8 \-
9 loop back sent multicast packets to local sockets
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_IPV6,\~IPV6_MULTICAST_LOOP,
19 .BI " const\~int\~*" enable ,\~sizeof(int));
20 .BI int\~getsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MULTICAST_LOOP,
21 .BI " int\~*" enabled ,\~sizeof(int));
22 .fi
23 .SH DESCRIPTION
24 Control whether the socket sees multicast packets that it has send itself.
25 .SH ERRORS
26 See
27 .BR IPPROTO_IPV6 (2const).
28 See
29 .BR setsockopt (2).
30 See
31 .BR ipv6 (7).
32 .SH HISTORY
33 .TP
34 .B IPV6_MULTICAST_LOOP
35 POSIX.1-2001.
36 .SH SEE ALSO
37 .BR IP_MULTICAST_LOOP (2const),
38 .BR IPPROTO_IPV6 (2const),
39 .BR setsockopt (2),
40 .BR ipv6 (7)