summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2020-03-19 18:05:11 -0700
committersaravanank <saravanank@vmware.com>2020-03-19 18:27:37 -0700
commit46a9ea8bfa753472e786268ed97444b41ce94fa8 (patch)
tree3e6e28b0d555ad523232fef445c63479c0b3a22f /pimd/pim_pim.c
parent7f2ccbe562cae49fb8bf1770a0ec79b701ee41af (diff)
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 8d7a921cf4..641008b3ff 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);
}