summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rpf.h
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_rpf.h
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_rpf.h')
-rw-r--r--pimd/pim_rpf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_rpf.h b/pimd/pim_rpf.h
index b9fe162f2..a4793df66 100644
--- a/pimd/pim_rpf.h
+++ b/pimd/pim_rpf.h
@@ -64,7 +64,8 @@ int pim_nexthop_lookup(struct pim_instance *pim, struct pim_nexthop *nexthop,
enum pim_rpf_result pim_rpf_update(struct pim_instance *pim,
struct pim_upstream *up, struct pim_rpf *old,
uint8_t is_new);
-
+void pim_upstream_rpf_clear(struct pim_instance *pim,
+ struct pim_upstream *up);
int pim_rpf_addr_is_inaddr_none(struct pim_rpf *rpf);
int pim_rpf_addr_is_inaddr_any(struct pim_rpf *rpf);