Debian Codegraph @

upstream/debian-unstable/man2/IPV6_MULTICAST_HOPS.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_HOPS 2const 2026-01-05 "Linux man-pages 6.18"
6 .SH NAME
7 IPV6_MULTICAST_HOPS
8 \-
9 multicast hop limit
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_HOPS,
19 .BI " const\~int\~*" val ,\~sizeof(int));
20 .BI int\~getsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MULTICAST_HOPS,
21 .BI " int\~*" val ,\~sizeof(int));
22 .fi
23 .SH DESCRIPTION
24 Set the multicast hop limit for the socket.
25 .P
26 A value of
27 .B \-1
28 means use the route default;
29 otherwise it should be in the range
30 .RB [ 0 ,
31 .BR 255 ].
32 .SH ERRORS
33 See
34 .BR IPPROTO_IPV6 (2const).
35 See
36 .BR setsockopt (2).
37 See
38 .BR ipv6 (7).
39 .SH HISTORY
40 .TP
41 .B IPV6_MULTICAST_HOPS
42 POSIX.1-2001.
43 .SH SEE ALSO
44 .BR IPPROTO_IPV6 (2const),
45 .BR setsockopt (2),
46 .BR ipv6 (7)