mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Nets are used before routers.
This commit is contained in:
parent
5db9bae286
commit
5904a51266
@ -142,7 +142,8 @@ add_cand(list *l, struct top_hash_entry *en, u16 dist, slab *s)
|
||||
|
||||
WALK_LIST(tmp,*l)
|
||||
{
|
||||
if(tmp->en->dist>dist)
|
||||
if((tmp->en->dist>dist)||
|
||||
((tmp->en->dist==dist)&&(tmp->en->lsa.type==LSA_T_NET)))
|
||||
{
|
||||
if(prev==NULL) add_head(l,NODE tmp);
|
||||
else insert_node(NODE tmp,prev);
|
||||
|
Loading…
Reference in New Issue
Block a user