]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_ifchannel.c
Merge pull request #9083 from mobash-rasool/pim-upst-3
[mirror_frr.git] / pimd / pim_ifchannel.c
index 7652c15d624efcda3c97382aae1e649394ec4bc5..86f897aed10b4bfa9f925ea2a202a246864b2237 100644 (file)
@@ -1233,6 +1233,16 @@ int pim_ifchannel_local_membership_add(struct interface *ifp,
                                           __FILE__, __func__, child->sg_str,
                                           ifp->name, up->sg_str);
 
+                       if (!child->rpf.source_nexthop.interface) {
+                               /* when iif unknown, do not inherit */
+                               if (PIM_DEBUG_EVENTS)
+                                       zlog_debug(
+                                               "Skipped (S,G)=%s(%s) from %s: no iif",
+                                               child->sg_str, ifp->name,
+                                               up->sg_str);
+                               continue;
+                       }
+
                        ch = pim_ifchannel_find(ifp, &child->sg);
                        if (pim_upstream_evaluate_join_desired_interface(
                                    child, ch, starch)) {