Join to AllHosts multicast group again when adding an existing IPv4 address.
authorAndrey V. Elsukov <ae@FreeBSD.org>
Tue, 13 Oct 2020 19:34:36 +0000 (19:34 +0000)
committerAndrey V. Elsukov <ae@FreeBSD.org>
Tue, 13 Oct 2020 19:34:36 +0000 (19:34 +0000)
commit3f740d43932be7ec08f038b9b10e6325d0145563
tree833b1ff651e314ec7c11dbf48e2e85782e45bc9b
parentf909db0b19724b6525c3a558685583de98ef21e6
Join to AllHosts multicast group again when adding an existing IPv4 address.

When SIOCAIFADDR ioctl configures an IPv4 address that is already exist,
it removes old ifaddr. When this IPv4 address is only one configured on
the interface, this also leads to leaving from AllHosts multicast group.
Then an address is added again, but due to the bug, this doesn't lead
to joining to AllHosts multicast group.

Submitted by: yannis.planus_alstomgroup.com
Reviewed by: gnn
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26757
sys/netinet/in.c