]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Validate both nexthop information (NEXTHOP and NLRI) 17435/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 15 Nov 2024 07:54:07 +0000 (09:54 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 15 Nov 2024 14:40:56 +0000 (16:40 +0200)
commita0d2734e879f78fbef5f1815429de331b9940c73
tree3d264a2b32aa4cf4c25b67357ea689f52e52a1d9
parent229466ebd11596c99902f3f63b8b03c17ab0e124
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>
bgpd/bgp_route.c