[Differential] D26757: Fix to join AllHost mcast group again when adding an existing IP address
yannis.planus_alstomgroup.com (Yannis Planus)
phabric-noreply at FreeBSD.org
Tue Oct 13 08:11:48 UTC 2020
yannis.planus_alstomgroup.com created this revision.
yannis.planus_alstomgroup.com added reviewers: network, mw.
Herald added subscribers: melifaro, imp.
yannis.planus_alstomgroup.com requested review of this revision.
REVISION SUMMARY
When calling SIOCAIFADDR ioctl with an existing IP address, this IP address was deleted and AllHost multicast group leaved.
Then IP address was added again but AllHost multicast group was not joined.
REPOSITORY
rS FreeBSD src repository
REVISION DETAIL
https://reviews.freebsd.org/D26757
AFFECTED FILES
sys/netinet/in.c
CHANGE DETAILS
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -379,10 +379,11 @@
continue;
it = (struct in_ifaddr *)ifa;
- iaIsFirst = false;
if (it->ia_addr.sin_addr.s_addr == addr->sin_addr.s_addr &&
prison_check_ip4(td->td_ucred, &addr->sin_addr) == 0)
ia = it;
+ else
+ iaIsFirst = false;
}
IF_ADDR_RUNLOCK(ifp);
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: yannis.planus_alstomgroup.com, #network, mw
Cc: imp, freebsd-net-list, melifaro, rscheff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26757.78157.patch
Type: text/x-patch
Size: 387 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20201013/1e06e7b9/attachment.bin>
More information about the freebsd-net
mailing list