summaryrefslogtreecommitdiff
path: root/pathd/path_errors.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-01-13 15:51:59 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-03-22 12:06:29 +0100
commitf8ac50d4b67d9951324f3869a8b5cda06b232b04 (patch)
tree34c7fbb0e57d068df85b7c12d322f26d1f0052a9 /pathd/path_errors.c
parentaa274376040e216710560b230fa473ea5f922ac2 (diff)
bgpd: correctly initialize the IP nexthop of redistributed routes
This is a preliminary work to export redistributed routes from a given VRF in an VPN network. The exportation works well, when the label allocation is based on an per-vrf mode, but not on a per nexthop mode. To associate a label with a connected nexthop, the nexthop tracking contexts are used. Until today, there was no tracking context for redistributed routes. But when using this vpn allocation mode, one needs to know whether the route is directly connected or not. When using the nexthop tracking context, the nexthop attribute of the bgp update needs to have the nexthop properly set. This was not the case for the mp_nexthop_global_in attribute which was empty. This commit is mandatory in order to later use nexthop tracking context. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'pathd/path_errors.c')
0 files changed, 0 insertions, 0 deletions