From 45cc0c76a71a288b64603a60148962f689c042a0 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 29 Dec 2016 07:01:05 +0000 Subject: [PATCH] zebra: check route flags when deciding whether to update existing route Signed-off-by: Quentin Young --- zebra/zebra_static.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5