Fix path metric calculation
authorJonathan Kirchhoff <jonathan.kirchhoff@fkie.fraunhofer.de>
Tue, 31 Jan 2017 13:08:37 +0000 (14:08 +0100)
committerJonathan Kirchhoff <jonathan.kirchhoff@fkie.fraunhofer.de>
Tue, 31 Jan 2017 13:08:37 +0000 (14:08 +0100)
commit53b6728965843d93210b400ff822fd95591c2d24
tree1b0c6f5096b6d78b484b9f33a516bfa203019e7c
parent4e2e22ece8afda715dde47e3cc8ecca67c51f818
Fix path metric calculation

The problem was that in some occasions, the maximum link metric value RFC7181_METRIC_INFINITE was used in path metric comparisons when RFC7181_METRIC_INFINITE_PATH should have been used, causing incorrect MPR sets and possibly failing assertions during validation.
src-plugins/nhdp/mpr/mpr.c
src-plugins/nhdp/mpr/neighbor-graph-flooding.c
src-plugins/nhdp/mpr/neighbor-graph-routing.c
src-plugins/nhdp/mpr/neighbor-graph.c