]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Track upstream state a bit better.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 15:10:31 +0000 (11:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:10 +0000 (20:26 -0500)
Track the upstream state if we are adding
a new state to a pre-existing upstream.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index 027a4ca0c4e3a8c2a9a283dda3d1a62aa955022b..138843405bd3ab87fffc819390842db44c151bd7 100644 (file)
@@ -569,6 +569,7 @@ struct pim_upstream *pim_upstream_add(struct prefix_sg *sg,
   up = pim_upstream_find(sg);
   if (up) {
     ++up->ref_count;
+    up->flags |= flags;
   }
   else {
     up = pim_upstream_new(sg, incoming, flags);