Commit
f19435a8 fixed rib_add() but didn't fix rib_add_multipath().
While here, remove the unnecessary 'same->table == re->table' check as
it always evaluate to true.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
if (CHECK_FLAG(same->status, ROUTE_ENTRY_REMOVED))
continue;
- if (same->type == re->type && same->instance == re->instance
- && same->table == re->table && !RIB_SYSTEM_ROUTE(same))
+ if (same->type != re->type)
+ continue;
+ if (same->instance != re->instance)
+ continue;
+ if (same->type == ZEBRA_ROUTE_KERNEL &&
+ same->metric != re->metric)
+ continue;
+ if (!RIB_SYSTEM_ROUTE(same))
break;
}