aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/igmp.4
blob: 2e820483a0676eccf8b59cbd230edad06b905746 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.\"
.\" Copyright (c) 2009 Bruce Simpson.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the project nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd March 9, 2009
.Dt IGMP 4
.Os
.Sh NAME
.Nm igmp
.Nd Internet Group Management Protocol
.Sh SYNOPSIS
.In sys/types.h
.In sys/socket.h
.In netinet/in.h
.In netinet/in_systm.h
.In netinet/ip.h
.In netinet/igmp.h
.Ft int
.Fn socket AF_INET SOCK_RAW IPPROTO_IGMP
.Sh DESCRIPTION
.Tn IGMP
is a control plane protocol used by IPv4 hosts and routers to
propagate multicast group membership information.
Normally this protocol is not used directly, except by the kernel
itself, in response to multicast membership requests by user
applications.
Routing protocols may open a raw socket to directly interact with
.Nm .
.Pp
As of
.Fx 8.0 ,
IGMP version 3 is implemented.
This adds support for Source-Specific Multicast (SSM), whereby
applications may communicate to upstream multicast routers that
they are only interested in receiving multicast streams from
particular sources.
.\"
.Sh SYSCTL VARIABLES
.Bl -tag -width indent
.\"
.It net.inet.igmp.stats
This opaque read-only variable exposes the stack-wide IGMPv3
protocol statistics to
.Xr netstat 1 .
.\"
.It net.inet.igmp.ifinfo
This opaque read-only variable exposes the per-link IGMPv3 status to
.Xr ifmcstat 8 .
.\"
.It net.inet.igmp.gsrdelay
This variable specifies the time threshold, in seconds, for processing
Group-and-Source Specific Queries (GSR).
As GSR query processing requires maintaining state on the host,
it may cause memory to be allocated, and is therefore a potential
attack point for Denial-of-Service (DoS).
If more than one GSR query is received within this threshold,
it will be dropped, to mitigate the potential for DoS.
.\"
.It net.inet.igmp.default_version
This variable controls the default version of IGMP to be used on all links.
This sysctl is normally set to 3 by default.
.\"
.It net.inet.igmp.legacysupp
If this variable is non-zero, then IGMP v1 and v2 membership reports
received on a link will be allowed to suppress the IGMP v3 state-change
reports which would otherwise be issued by this host.
This sysctl is normally enabled by default.
.\"
.It net.inet.igmp.v2enable
If this variable is non-zero, then IGMP v2 membership queries will be
processed by this host, and backwards compatibility will be enabled
until the v2 'Old Querier Present' timer expires.
This sysctl is normally enabled by default.
.\"
.It net.inet.igmp.v1enable
If this variable is non-zero, then IGMP v1 membership queries will be
processed by this host, and backwards compatibility will be enabled
until the v1 'Old Querier Present' timer expires.
This sysctl is normally enabled by default.
.\"
.It net.inet.igmp.sendlocal
If this variable is non-zero, then IGMP state-changes for groups in
the 224.0.0.0/24 link-scope prefix will be issued.
This behaviour is recommended if deploying
.Fx
in a network environment with layer 2 devices which snoop IGMP traffic
to mitigate multicast propagation throughout the network.
This sysctl is normally enabled by default.
.\"
.It net.inet.igmp.sendra
If this variable is non-zero, then IGMP v2 and v3 reports will contain
the IP Router Alert option.
This sysctl is normally enabled by default.
.\"
.It net.inet.igmp.recvifkludge
If this variable is non-zero, then received IGMP reports which contain
0.0.0.0 as their source will be rewritten to contain the subnet address.
This is useful when there are hosts on-link which have not yet been
configured with a primary IPv4 address.
This sysctl is normally enabled by default.
.\"
.El
.Sh SEE ALSO
.Xr netstat 1 ,
.Xr sourcefilter 3 ,
.Xr inet 4 ,
.Xr multicast 4 ,
.Xr ifmcstat 8
.Sh HISTORY
The
.Nm
manual page re-appeared in
.Fx 8.0 .