summaryrefslogtreecommitdiffstats
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2020-03-20 02:05:11 +0100
committersaravanank <saravanank@vmware.com>2020-03-20 02:27:37 +0100
commit46a9ea8bfa753472e786268ed97444b41ce94fa8 (patch)
tree3e6e28b0d555ad523232fef445c63479c0b3a22f /pimd/pim_pim.c
parentMerge pull request #6003 from ton31337/fix/skip_kitchen_files (diff)
downloadfrr-46a9ea8bfa753472e786268ed97444b41ce94fa8.tar.xz
frr-46a9ea8bfa753472e786268ed97444b41ce94fa8.zip
pimd: When DR becomes non DR, couldreg state events not handled.
RCA: Upstreams which are in register state other than noinfo, doesnt remove register tunnel from oif after it becomes nonDR Fix: scan upstreams with iif as the old dr and check if couldReg becomes false. If couldreg becomes false from true, remove regiface and stop reg timer. Do not disturb the entry. Later the entry shall be removed by kat expiry. Signed-off-by: Saravanan K <saravanank@vmware.com>
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 8d7a921cf..641008b3f 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -474,6 +474,7 @@ void pim_sock_reset(struct interface *ifp)
pim_ifp->pim_dr_num_nondrpri_neighbors =
0; /* neighbors without dr_pri */
pim_ifp->pim_dr_addr = pim_ifp->primary_address;
+ pim_ifp->am_i_dr = true;
pim_ifstat_reset(ifp);
}