Debian Codegraph @

upstream/debian-unstable/man2/ip_mreqn.2type

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH ip_mreqn 2type 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 ip_mreqn,
8 ip_mreq
9 \-
10 IP multicast request index
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <netinet/in.h>" " /* Definition of " IP* " constants */"
17 .fi
18 .P
19 .EX
20 struct ip_mreqn {
21 struct in_addr imr_multiaddr; /* IP multicast group address */
22 struct in_addr imr_address; /* IP address of local interface */
23 int imr_ifindex; /* interface index */
24 };
25 .P
26 struct ip_mreq {
27 struct in_addr imr_multiaddr; /* IP multicast group address */
28 struct in_addr imr_address; /* IP address of local interface */
29 };
30 .EE
31 .SH DESCRIPTION
32 .TP
33 .I .imr_multiaddr
34 The address of the multicast group
35 the application wants to join or leave.
36 It must be a valid multicast address.
37 .\" (i.e., within the 224.0.0.0-239.255.255.255 range)
38 .TP
39 .I .imr_address
40 The address of the local interface with which the system
41 should join the multicast group;
42 if it is equal to
43 .BR INADDR_ANY ,
44 an appropriate interface is chosen by the system.
45 .TP
46 .I .imr_ifindex
47 The interface index of the interface that should join/leave the
48 .I .imr_multiaddr
49 group,
50 or 0 to indicate any interface.
51 .SH HISTORY
52 .TP
53 .I ip_mreqn
54 Linux 2.2.
55 .TP
56 .I ip_mreq
57 Linux 1.2.
58 .SH SEE ALSO
59 .BR IP_ADD_MEMBERSHIP (2const),
60 .BR IP_DROP_MEMBERSHIP (2const),
61 .BR IP_MULTICAST_IF (2const),
62 .BR ip (7)