From 9f5f3328cc0f63cbcf1211ebcc87b0e71592b0a6 Mon Sep 17 00:00:00 2001 From: yar Date: Tue, 27 Mar 2001 13:15:57 +0000 Subject: [PATCH] Don't bypass notifying a corresponding interface when leaving a link-layer multicast group. PR: kern/22176 Reviewed by: wollman --- sys/net/if.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/net/if.c b/sys/net/if.c index 2f06afd761c..d7ca2f587c4 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1284,6 +1284,12 @@ if_delmulti(ifp, sa) sa = ifma->ifma_lladdr; s = splimp(); TAILQ_REMOVE(&ifp->if_multiaddrs, ifma, ifma_link); + /* + * Make sure the interface driver is notified + * in the case of a link layer mcast group being left. + */ + if (ifma->ifma_addr->sa_family == AF_LINK && sa == 0) + ifp->if_ioctl(ifp, SIOCDELMULTI, 0); splx(s); free(ifma->ifma_addr, M_IFMADDR); free(ifma, M_IFMADDR); -- 2.45.0