From 5904a51266d82482392bad5d6d17a3be54c65596 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 26 Apr 2000 14:03:56 +0000 Subject: Nets are used before routers. --- proto/ospf/rt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index dbdba11d..d1425a52 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); -- cgit v1.2.3