]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: fix metric type of NSSA Type-7 LSAs
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 6 Sep 2021 22:50:27 +0000 (19:50 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 21 Sep 2021 20:43:45 +0000 (17:43 -0300)
commit242a9767f7bf44b1ec8944ca880962c62d5264b2
treea5ac6d74aad64962a33026f33cdbcf04aa7cf4b6
parente81192ad7c08d85f008c8a400157b69e5a42c2e4
ospf6d: fix metric type of NSSA Type-7 LSAs

Fix wrong comparison since route->path.metric_type is always set
to either 1 or 2. The OSPF6_PATH_TYPE_EXTERNAL2 constant, whose
value is 4, refers to a route type so its usage was incorrect here.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospf6d/ospf6_nssa.c
tests/topotests/ospf6_topo2/test_ospf6_topo2.py