From: Quentin Young Date: Thu, 29 Dec 2016 07:01:05 +0000 (+0000) Subject: zebra: check route flags when deciding whether to update existing route X-Git-Tag: frr-3.0-branchpoint~100^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=45cc0c76a71a288b64603a60148962f689c042a0;p=mirror%2Ffrr.git zebra: check route flags when deciding whether to update existing route Signed-off-by: Quentin Young --- diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index e6ae9c71d4..200a55a7ec 100644 --- a/zebra/zebra_static.c +++ b/zebra/zebra_static.c @@ -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;