summaryrefslogtreecommitdiff
path: root/pimd/pim_mroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_mroute.c')
-rw-r--r--pimd/pim_mroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index c77f312c98..8b9269518c 100644
--- a/pimd/pim_mroute.c
+++ b/pimd/pim_mroute.c
@@ -462,8 +462,8 @@ static int pim_mroute_msg_wrvifwhole(int fd, struct interface *ifp,
*/
if (!PIM_UPSTREAM_FLAG_TEST_FHR(up->flags)) {
// No if channel, but upstream we are at the RP.
- if (pim_nexthop_lookup(&source, up->upstream_register,
- 0)
+ if (pim_nexthop_lookup(pim_ifp->pim, &source,
+ up->upstream_register, 0)
== 0)
pim_register_stop_send(source.interface, &sg,
pim_ifp->primary_address,
@@ -477,8 +477,8 @@ static int pim_mroute_msg_wrvifwhole(int fd, struct interface *ifp,
__PRETTY_FUNCTION__);
pim_upstream_set_sptbit(up, ifp);
} else {
- if (I_am_RP(up->sg.grp)) {
- if (pim_nexthop_lookup(&source,
+ if (I_am_RP(pim_ifp->pim, up->sg.grp)) {
+ if (pim_nexthop_lookup(pim_ifp->pim, &source,
up->upstream_register, 0)
== 0)
pim_register_stop_send(