]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: Allow bgp to understand the different nexthop types
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 15 Nov 2017 18:22:56 +0000 (13:22 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Nov 2017 13:45:28 +0000 (08:45 -0500)
commit9de1f7ff13889391e72162a50619b2ff275209f4
treedf2c171bdeceff3df03ed6e06f294e4079a43d51
parent14aa0c3d3ab0ba1647a477967849a2ee3c32ae51
bgpd: Allow bgp to understand the different nexthop types

When BGP is being redistributed prefixes, allow it to
understand the nexthop type.

This fixes the issue where a blackhole route was being interpreted
to having a nexthop of 1.0.0.0( ruh-roh!!! ).  This broke
downstream neighbors as that they would receive a 1.0.0.0 nexthop,
which is bad, very very bad.

This commit sets us up for the future where we can match
a route-map against a nexthop type.  In that bgp is
now at least nominally paying attention to the type.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_zebra.c