summaryrefslogtreecommitdiffstats
path: root/pimd/pim_upstream.c
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2019-02-22 16:29:24 +0100
committerSarita Patra <saritap@vmware.com>2019-02-25 08:27:08 +0100
commit1250cb5df29b7ac663fc57ee75ec18899cb6e608 (patch)
tree1c8785c1a7e2cedc6faddf283ea49871a97aafdc /pimd/pim_upstream.c
parentpimd: clear rp_info source_nexthop when RP becomes not reachable (diff)
downloadfrr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.tar.xz
frr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.zip
pimd: clear upstream rpf information when RP becomes not reachable
When route to RP gets modified, FRR receives a notification from zebra, and call the function pim_resolve_upstream_nh() to compute the nexthop and update upstream->rpf structure. Issue: In case when RP becomes not reachable, FRR only uninstall the mroute from the kernal, but not update the upstream->rpf structure. Fix: When FRR receives a notification from zebra saying RP becomes not reachable, then update the following fields. 1. update channel_oil incoming interface as MAXVIFS 2. Un-install the mroute from the kernel. 3. Switch upstream state from JOINED to NOTJOINED. 4. Clear the nexthop information of the upstream. Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r--pimd/pim_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 2a2b94435..f1fb99832 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -941,7 +941,7 @@ void pim_upstream_update_join_desired(struct pim_instance *pim,
PIM_UPSTREAM_FLAG_UNSET_DR_JOIN_DESIRED(up->flags);
/* switched from false to true */
- if (is_join_desired && !was_join_desired) {
+ if (is_join_desired) {
pim_upstream_switch(pim, up, PIM_UPSTREAM_JOINED);
return;
}