]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Validate both nexthop information (NEXTHOP and NLRI) 17450/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 17 Nov 2024 09:29:45 +0000 (11:29 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 17 Nov 2024 09:29:45 +0000 (11:29 +0200)
commitaede3dc32efb93020ab5eec82ee5a91eb4c94ef2
tree66981921201e50f86ad15deec52cb2f4555c9745
parent904fbc9452aea038d5f51913e6f041a84ba83511
bgpd: Validate both nexthop information (NEXTHOP and NLRI)

If we receive an IPv6 prefix e.g.: 2001:db8:100::/64 with nextop: 0.0.0.0, and
mp_nexthop: fc00::2, we should not treat this with an invalid nexthop because
of 0.0.0.0. We MUST check for MP_REACH attribute also and decide later if we
have at least one a valid nexthop.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit a0d2734e879f78fbef5f1815429de331b9940c73)
bgpd/bgp_route.c