Document the behaviour of IP_ADD_MEMBERSHIP as per RFC 1724.

PR:		bin/51927
This commit is contained in:
Bruce M Simpson 2004-06-16 05:04:17 +00:00
parent a97719a4c5
commit 26c3ef5325
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130556

View File

@ -432,14 +432,22 @@ struct ip_mreq {
.Ed
.Pp
.Dv imr_interface
should
be
should be set to
.Dv INADDR_ANY
to choose the default multicast interface,
or the
.Tn IP
address of a particular multicast-capable interface if
the host is multihomed.
Since
.Fx 4.4 ,
if the
.Dv imr_interface
member is within the network range
.Li 0.0.0.0/8 ,
it is treated as an interface index in the system interface MIB,
as per the RIP Version 2 MIB Extension (RFC-1724).
.Pp
Membership is associated with a single interface;
programs running on multihomed hosts may need to
join the same group on more than one interface.