]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Only add a igmp socket if the address is ipv4
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 20 Jun 2017 13:25:36 +0000 (09:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Jul 2017 17:51:40 +0000 (13:51 -0400)
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>
pimd/pim_iface.c

index 2e04d927ee7b7556e6e3dbf8b34df8777854fb79..f87610a40f8a848697a180e70e6faeddb92e408c 100644 (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 */