diff options
| author | Renato Westphal <renato@openbsd.org> | 2017-09-28 22:04:02 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-28 22:04:02 -0300 |
| commit | c00ad29fc4a75ba64f42999c7a3aa8fc60b52c81 (patch) | |
| tree | c91e3d7f1edcbc2c271adfbfb93308f673028459 /zebra/zebra_rib.c | |
| parent | 2d9c2ae397eb30f8c62a6dc11ade108d7456f802 (diff) | |
| parent | 1ca60f2c3ebe0a33c508de1ab81edb2bde5d9c4c (diff) | |
Merge pull request #1236 from donaldsharp/interface_startup
zebra: Do not allow same rib_dest_t be queued multiple times to meta …
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 61a18e2df7..fab8c3c932 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2500,6 +2500,15 @@ static void rib_update_table(struct route_table *table, * the trigger event. */ for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) { + /* + * If we are looking at a route node and the node + * has already been queued we don't + * need to queue it up again + */ + if (rn->info + && CHECK_FLAG(rib_dest_from_rnode(rn)->flags, + RIB_ROUTE_ANY_QUEUED)) + continue; switch (event) { case RIB_UPDATE_IF_CHANGE: /* Examine all routes that won't get processed by the |
