if (pim_ifp) {
if (!pim_ifp->bsm_enable)
- vty_out(vty, " no ip pim bsm\n");
+ vty_out(vty, " no " PIM_AF_NAME " pim bsm\n");
if (!pim_ifp->ucast_bsm_accept)
- vty_out(vty, " no ip pim unicast-bsm\n");
+ vty_out(vty, " no " PIM_AF_NAME " pim unicast-bsm\n");
}
}
return bsgrp;
}
-static int pim_on_bs_timer(struct thread *t)
+static void pim_on_bs_timer(struct thread *t)
{
struct route_node *rn;
struct bsm_scope *scope;
pim_bsm_rpinfos_free(bsgrp_node->partial_bsrp_list);
bsgrp_node->pend_rp_cnt = 0;
}
- return 0;
}
static void pim_bs_timer_stop(struct bsm_scope *scope)
return true;
}
-static int pim_on_g2rp_timer(struct thread *t)
+static void pim_on_g2rp_timer(struct thread *t)
{
struct bsm_rpinfo *bsrp;
struct bsm_rpinfo *bsrp_node;
if (!rn) {
zlog_warn("%s: Route node doesn't exist", __func__);
- return 0;
+ return;
}
rp_info = (struct rp_info *)rn->info;
if (!rp_info) {
route_unlock_node(rn);
- return 0;
+ return;
}
if (rp_info->rp_src != RP_SRC_STATIC) {
&bsgrp_node->group);
pim_free_bsgrp_data(bsgrp_node);
}
-
- return 0;
}
static void pim_g2rp_timer_start(struct bsm_rpinfo *bsrp, int hold_time)
}
}
- if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr) {
+#if PIM_IPV == 4
+ if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr)
+#else
+ if (0)
+#endif
+ {
/* Multicast BSMs are only accepted if source interface & IP
* match RPF towards the BSR's IP address, or they have
* no-forward set