summaryrefslogtreecommitdiff
path: root/zebra/zebra_static.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-12-29 07:01:05 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-12-29 07:04:15 +0000
commit45cc0c76a71a288b64603a60148962f689c042a0 (patch)
treefff4ba122dcd8aae51d36d93018e81a66e439f8a /zebra/zebra_static.c
parent487be854a5476afa9d96e09ef20617d20dda7f78 (diff)
zebra: check route flags when deciding whether to update existing route
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_static.c')
-rw-r--r--zebra/zebra_static.c3
1 files changed, 2 insertions, 1 deletions
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;