]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_mpls.c
zebra: fix installation of LDP labels on static routes
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 7 Feb 2017 11:47:37 +0000 (09:47 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 7 Feb 2017 12:22:30 +0000 (10:22 -0200)
commit4312ff1c28be6de6c2a6a15e1829f256b7985d0b
treeec5841376f43be3f5cd3ea1b2e352c8d9d0d7d9c
parent8cb1fc4537e2bc44a021c988b4c5d08618975924
zebra: fix installation of LDP labels on static routes

If the ifindex of a nexthop is not zero, we can't assume that its type is
NEXTHOP_TYPE_IPV4_IFINDEX or NEXTHOP_TYPE_IPV6_IFINDEX. Nexthops of type
NEXTHOP_TYPE_IPV[46] can have their ifindex set by the nexthop_active()
function.

With that said, we need to me more flexible when comparing nexthops
on mpls_ftn_update() to make sure that we'll always find the correct
route/nexthop to update.

Regression introduced by commit 88d88a ("zebra/ldpd: allow MPLS ECMP on
unnumbered interfaces") and found by ANVL.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_mpls.c