From 86abfcb8972347a2e8a15fc38ad6d8fdda72f9f1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 28 Nov 2016 19:05:09 -0500 Subject: [PATCH] pimd: Actually expedite a hello When we get a new neighbor for an interface, we need to send a hello out that interface in some situations. At this time we were tracking this by the pim_ifstat_hello_sent value but not reseting it when we received a new neighbor. Ticket: CM-13769 Signed-off-by: Donald Sharp Reviewed-by: Anuradha Karuppiah --- pimd/pim_neighbor.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c index a8a60f6f38..83d3851d9e 100644 --- a/pimd/pim_neighbor.c +++ b/pimd/pim_neighbor.c @@ -318,6 +318,14 @@ static struct pim_neighbor *pim_neighbor_new(struct interface *ifp, neigh->interface = ifp; pim_neighbor_timer_reset(neigh, holdtime); + /* + * The pim_ifstat_hello_sent variable is used to decide if + * we should expedite a hello out the interface. If we + * establish a new neighbor, we unfortunately need to + * reset the value so that we can know to hurry up and + * hello + */ + pim_ifp->pim_ifstat_hello_sent = 0; pim_inet4_dump("", source_addr, src_str, sizeof(src_str)); -- 2.39.5