summaryrefslogtreecommitdiffstats
path: root/pimd/pim_upstream.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-17 22:21:33 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-24 19:51:34 +0200
commit43e40fdfe10dc302814034550b023d49ce3850ba (patch)
tree6e5b038de89169ddbbe35d8d19caee6f1d79d211 /pimd/pim_upstream.c
parentpimd: Create pim_get_pim_instance (diff)
downloadfrr-43e40fdfe10dc302814034550b023d49ce3850ba.tar.xz
frr-43e40fdfe10dc302814034550b023d49ce3850ba.zip
pimd: Create the pimreg per vrf
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r--pimd/pim_upstream.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 735f5ef40..e77b026cb 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -491,7 +491,7 @@ void pim_upstream_register_reevaluate(void)
up->sg_str);
/* remove regiface from the OIL if it is there*/
pim_channel_del_oif(up->channel_oil,
- pim_regiface,
+ pimg->regiface,
PIM_OIF_FLAG_PROTO_PIM);
up->reg_state = PIM_REG_NOINFO;
}
@@ -503,7 +503,7 @@ void pim_upstream_register_reevaluate(void)
"Register %s as G is now ASM",
up->sg_str);
pim_channel_add_oif(up->channel_oil,
- pim_regiface,
+ pimg->regiface,
PIM_OIF_FLAG_PROTO_PIM);
up->reg_state = PIM_REG_JOIN;
}
@@ -1032,7 +1032,7 @@ static void pim_upstream_fhr_kat_expiry(struct pim_upstream *up)
/* stop reg-stop timer */
THREAD_OFF(up->t_rs_timer);
/* remove regiface from the OIL if it is there*/
- pim_channel_del_oif(up->channel_oil, pim_regiface,
+ pim_channel_del_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_PIM);
/* clear the register state */
up->reg_state = PIM_REG_NOINFO;
@@ -1310,7 +1310,7 @@ static int pim_upstream_register_stop_timer(struct thread *t)
switch (up->reg_state) {
case PIM_REG_JOIN_PENDING:
up->reg_state = PIM_REG_JOIN;
- pim_channel_add_oif(up->channel_oil, pim_regiface,
+ pim_channel_add_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_PIM);
break;
case PIM_REG_JOIN:
@@ -1650,7 +1650,7 @@ void pim_upstream_add_lhr_star_pimreg(void)
if (!PIM_UPSTREAM_FLAG_TEST_SRC_IGMP(up->flags))
continue;
- pim_channel_add_oif(up->channel_oil, pim_regiface,
+ pim_channel_add_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_IGMP);
}
}
@@ -1697,17 +1697,17 @@ void pim_upstream_remove_lhr_star_pimreg(const char *nlist)
continue;
if (!nlist) {
- pim_channel_del_oif(up->channel_oil, pim_regiface,
+ pim_channel_del_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_IGMP);
continue;
}
g.u.prefix4 = up->sg.grp;
apply_new = prefix_list_apply(np, &g);
if (apply_new == PREFIX_DENY)
- pim_channel_add_oif(up->channel_oil, pim_regiface,
+ pim_channel_add_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_IGMP);
else
- pim_channel_del_oif(up->channel_oil, pim_regiface,
+ pim_channel_del_oif(up->channel_oil, pimg->regiface,
PIM_OIF_FLAG_PROTO_IGMP);
}
}