diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-06 19:42:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-06 19:42:09 -0500 |
| commit | 9648f98729d46b81d4b7e8fe8a7530290ee515a4 (patch) | |
| tree | 62167e14d37307d9ce7117a6876e621b447fd0ab /zebra/zebra_static.c | |
| parent | 40bfb7248f016b8c7862a188fe8f448ddccb9ecc (diff) | |
| parent | 45cc0c76a71a288b64603a60148962f689c042a0 (diff) | |
Merge pull request #35 from qlyoung/fix-zebra-rf
zebra: check route flags when deciding whether to update existing route
Diffstat (limited to 'zebra/zebra_static.c')
| -rw-r--r-- | zebra/zebra_static.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index 76ef0c636f..b323950064 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; |
