// Current Nexthop is VALID, check to stay on the current path.
if (nexthop->interface && nexthop->interface->info &&
- ((struct pim_interface *)nexthop->interface->info)->options &&
+ (((struct pim_interface *)nexthop->interface->info)->pim_enable ||
+ ((struct pim_interface *)nexthop->interface->info)->igmp_enable) &&
(!pim_addr_is_any(nh_addr))) {
/* User configured knob to explicitly switch
to new path is disabled or current path
continue;
}
- if (!PIM_IF_TEST_PIM(
- ((struct pim_interface *)ifp->info)->options)) {
+ if (!((struct pim_interface *)ifp->info)->pim_enable) {
if (PIM_DEBUG_PIM_NHT)
zlog_debug(
"%s: pim not enabled on input interface %s(%s) (ifindex=%d, RPF for source %pI4)",
}
- if (!PIM_IF_TEST_PIM(
- ((struct pim_interface *)ifp->info)->options)) {
+ if (!((struct pim_interface *)ifp->info)->pim_enable) {
if (PIM_DEBUG_PIM_NHT)
zlog_debug(
"%s: pim not enabled on input interface %s(%s) (ifindex=%d, RPF for source %pI4)",