summaryrefslogtreecommitdiffstats
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorpaul <paul>2007-02-26 17:14:48 +0000
committerpaul <paul>2007-02-26 17:14:48 +0000
commit136021d0b10952aa4982b6bdd615c7217ba62cc4 (patch)
treedf04d2fbb77693dffc5c3f5654df553ce11e30b2 /zebra/kernel_socket.c
parentac5d8d27d45d2b0ac31a448ad8121f61396e7017 (diff)
downloadquagga-136021d0b10952aa4982b6bdd615c7217ba62cc4.tar.bz2
quagga-136021d0b10952aa4982b6bdd615c7217ba62cc4.tar.xz
[ospfd] Fix regression in SPF introduced by bug#330 fixes
2007-02-26 Paul Jakma <paul.jakma@sun.com> * ospf_spf.c: Fix regression introduced with bug #330 fix: The cost update added to ospf_spf_add_parent only handled PtP case, differing from same functionality in higher-level ospf_spf_next. Regression diagnosed by Anders Pedersen, mailnews+router-quagga-dev@news.cohaesio.com. (ospf_vertex_new) Initialise vertices to max-cost. (ospf_spf_init) Root vertex always creates with 0 cost. (ospf_spf_add_parent) Remove the buggy V->W cost calculating code, instead take the new distance as a parameter. (ospf_nexthop_calculation) Take distance as parameter, so it can be passed down to add_parent. (ospf_spf_next) Dont initialise candiate vertex distance, vertex_new does so already. Pass distance down to nexthop_calculation (see above).
Diffstat (limited to 'zebra/kernel_socket.c')
0 files changed, 0 insertions, 0 deletions