]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix the add-path code to understand the mpls-vpn safi 3843/head
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 20 Feb 2019 18:54:32 +0000 (15:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 21 Feb 2019 02:04:12 +0000 (23:04 -0300)
commit6ff96d00f19fa92d41c4c10e1947342fa3f25bc2
treee842c7c74522df29e2dfa1c068939cd968964668
parent6291837764c6bd2facbff5fbe38f33fa8b1b1d34
bgpd: fix the add-path code to understand the mpls-vpn safi

In order to iterate over MPLS VPN routes, it's necessary to use
two nested loops (the outer loop iterates over the MPLS VPN RDs,
and the inner loop iterates over the VPN routes from that RD).

The add-path code wasn't doing this, which was leading to lots of
crashes when add-path was enabled for the MPLS VPN SAFI. This patch
fixes the problem.

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