]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_spf.c
ospfd: Discriminate better when selecting links between vertices in SPF
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 27 Jul 2009 10:42:31 +0000 (12:42 +0200)
committerPaul Jakma <paul@quagga.net>
Thu, 30 Jul 2009 15:18:30 +0000 (16:18 +0100)
commitbd5403778b0d96258730050e4526c7c72903e60b
treebcd21a0f78175f0693857bc7eaadef30d8b3c4a6
parent4a5f432fa07f33da5ad05d18e4ba81d57b44af8e
ospfd: Discriminate better when selecting links between vertices in SPF

* ospf_spf.c: (ospf_get_next_link) One must check the vertex type, Router or
  Network, to select type link to match against.  Link type 1 has neighbour
  router ID in link_id and link type 2 has IP address of DR.  Since router
  id may have same value as an existing IP address one risks matching a
  router ID against a DR.
ospfd/ospf_spf.c