diff options
author | Ondrej Filip <feela@network.cz> | 2000-04-26 16:03:56 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-04-26 16:03:56 +0200 |
commit | 5904a51266d82482392bad5d6d17a3be54c65596 (patch) | |
tree | 71cbc220f13f6a7830424a74d65d5fd265b045d1 /proto | |
parent | 5db9bae28676d743f53636d74997c85039d09278 (diff) | |
download | bird-5904a51266d82482392bad5d6d17a3be54c65596.tar bird-5904a51266d82482392bad5d6d17a3be54c65596.zip |
Nets are used before routers.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/rt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index dbdba11..d1425a5 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -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); |