From: Donald Sharp Date: Tue, 29 Nov 2016 00:05:09 +0000 (-0500) Subject: pimd: Actually expedite a hello X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~60 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=86abfcb8972347a2e8a15fc38ad6d8fdda72f9f1;p=mirror%2Ffrr.git 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 --- 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));