pim_ifp->pim_enable = pim;
pim_ifp->pim_passive_enable = false;
#if PIM_IPV == 4
- pim_ifp->igmp_enable = igmp;
+ pim_ifp->gm_enable = igmp;
#endif
pim_ifp->gm_join_list = NULL;
#if PIM_IPV == 4
struct in_addr ifaddr = ifc->address->u.prefix4;
- if (pim_ifp->igmp_enable) {
+ if (pim_ifp->gm_enable) {
struct gm_sock *igmp;
/* lookup IGMP socket */
pim_ifp = ifp->info;
assert(pim_ifp);
- if (pim_ifp->pim_enable && pim_ifp->igmp_enable) {
+ if (pim_ifp->pim_enable && pim_ifp->gm_enable) {
return;
}
if (!pim_ifp->pim_enable)
return;
- if (!pim_ifp->igmp_enable)
+ if (!pim_ifp->gm_enable)
return;
/*
*/
pim_sock_delete(ifp, "pim unconfigured on interface");
- if (!pim_ifp->igmp_enable) {
+ if (!pim_ifp->gm_enable) {
pim_if_addr_del_all(ifp);
pim_if_delete(ifp);
}
pim_ifp = pim_if_new(ifp, true, false, false, false);
need_startup = 1;
} else {
- if (!pim_ifp->igmp_enable) {
- pim_ifp->igmp_enable = true;
+ if (!pim_ifp->gm_enable) {
+ pim_ifp->gm_enable = true;
need_startup = 1;
}
}
if (!pim_ifp)
return NB_OK;
- pim_ifp->igmp_enable = false;
+ pim_ifp->gm_enable = false;
pim_if_membership_clear(ifp);
{
#if PIM_IPV == 4
struct interface *ifp;
- bool igmp_enable;
+ bool gm_enable;
struct pim_interface *pim_ifp;
int mcast_if_count;
const char *ifp_name;
break;
case NB_EV_APPLY:
ifp = nb_running_get_entry(args->dnode, NULL, true);
- igmp_enable = yang_dnode_get_bool(args->dnode, NULL);
+ gm_enable = yang_dnode_get_bool(args->dnode, NULL);
- if (igmp_enable)
+ if (gm_enable)
return pim_cmd_igmp_start(ifp);
else {
if (!pim_ifp)
return NB_ERR_INCONSISTENCY;
- pim_ifp->igmp_enable = false;
+ pim_ifp->gm_enable = false;
pim_if_membership_clear(ifp);