pimd: Only add a igmp socket if the address is ipv4

When the secondary addresses got expanded to allow
v6 on the list, we needed to limit the igmp sockets
to just v4 currently.

Ticket: CM-16858
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-20 09:25:36 -04:00
parent 9853a7a5b1
commit c77a04e427

View File

@ -605,8 +605,9 @@ void pim_if_addr_add(struct connected *ifc)
ifaddr);
if (!igmp) {
/* if addr new, add IGMP socket */
pim_igmp_sock_add(pim_ifp->igmp_socket_list, ifaddr,
ifp);
if (ifc->address->family == AF_INET)
pim_igmp_sock_add(pim_ifp->igmp_socket_list,
ifaddr, ifp);
}
/* Replay Static IGMP groups */