]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: check route flags when deciding whether to update existing route 35/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 29 Dec 2016 07:01:05 +0000 (07:01 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 29 Dec 2016 07:04:15 +0000 (07:04 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zebra_static.c

index e6ae9c71d47a63fb42d05a406f7016c9d2babbf8..200a55a7ec75ab34b146612ecc3797febcebc63e 100644 (file)
@@ -401,7 +401,8 @@ static_add_route (afi_t afi, safi_t safi, u_char type, struct prefix *p,
          && (! ifindex || ifindex == si->ifindex))
        {
          if ((distance == si->distance) && (tag == si->tag) &&
-             !memcmp (&si->snh_label, snh_label, sizeof (struct static_nh_label)))
+             !memcmp (&si->snh_label, snh_label, sizeof (struct static_nh_label)) &&
+             si->flags == flags)
            {
              route_unlock_node (rn);
              return 0;