]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: generalize imported peer in bgp best selection function
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 24 Feb 2023 13:19:06 +0000 (14:19 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 28 Feb 2023 21:00:25 +0000 (22:00 +0100)
commit8cd3d07097a50c3e9282d293928c82c11a15ce60
tree269f5431cbf4be056f6d3699da903f824c785610
parent516444e6b17c0043e7abe88ce6587d7dd37ed5e5
bgpd: generalize imported peer in bgp best selection function

The bgp_path_info_cmp() function needs to get the peer of
imported prefixes in many parts of the algorithm. Use two
local variables to get the original peer either for vpn
imported prefixes or from standard prefixes.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c