From 27f5dc8120e1c6902e29d86cf0d77b82cf3848c0 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sat, 22 Aug 2009 14:57:54 +0200 Subject: ospfd: Make sure priority is respected. * ospf_ism.c (ospf_dr_eligible_routers) should test for priority > 0 instead of != 0 as ospf_nbr_new () initially sets prio to -1 --- ospfd/ospf_ism.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospfd/ospf_ism.c') diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c index f215bfc2..18402836 100644 --- a/ospfd/ospf_ism.c +++ b/ospfd/ospf_ism.c @@ -173,7 +173,7 @@ ospf_dr_eligible_routers (struct route_table *nbrs, struct list *el_list) /* Ignore 0.0.0.0 node*/ if (nbr->router_id.s_addr != 0) /* Is neighbor eligible? */ - if (nbr->priority != 0) + if (nbr->priority > 0) /* Is neighbor upper 2-Way? */ if (nbr->state >= NSM_TwoWay) listnode_add (el_list, nbr); -- cgit v1.2.1