]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Actually expedite a hello
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 29 Nov 2016 00:05:09 +0000 (19:05 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:17 +0000 (20:26 -0500)
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 <sharpd@cumulusnetworks.com>
Reviewed-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
pimd/pim_neighbor.c

index a8a60f6f38e3ddc5452b2c31485632551067ced1..83d3851d9e6370c131693cc863008c42643cd49b 100644 (file)
@@ -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("<src?>", source_addr, src_str, sizeof(src_str));