diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2009-08-22 14:57:54 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-08-28 13:03:49 +0100 |
commit | 27f5dc8120e1c6902e29d86cf0d77b82cf3848c0 (patch) | |
tree | a9058ac54bf22840409d52aa761fa215cc7abb31 /ospfd/ospf_ism.c | |
parent | 5d8de93a84b2afc4202d3284eb9e57672e2551b3 (diff) |
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
Diffstat (limited to 'ospfd/ospf_ism.c')
-rw-r--r-- | ospfd/ospf_ism.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |