]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Make sure priority is respected.
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Sat, 22 Aug 2009 12:57:54 +0000 (14:57 +0200)
committerPaul Jakma <paul@quagga.net>
Fri, 28 Aug 2009 12:03:49 +0000 (13:03 +0100)
* 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

index f215bfc21dca1ee8d914673a622f13d332a0165a..18402836c8a0bec5f37d2f24d2bef4ee68918353 100644 (file)
@@ -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);