mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 23:53:28 +00:00
bgpd: Cleanup non-normal compiled code path
Looks like we missed some code in a non-normal compiled code path for the bgp_path_info conversion. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b7822d2016
commit
2b964e8699
@ -418,7 +418,8 @@ static void revalidate_bgp_node(struct bgp_node *bgp_node, afi_t afi,
|
|||||||
|
|
||||||
for (ain = bgp_node->adj_in; ain; ain = ain->next) {
|
for (ain = bgp_node->adj_in; ain; ain = ain->next) {
|
||||||
int ret;
|
int ret;
|
||||||
struct bgp_path_info *path = bgp_info_from_node(bgp_node);
|
struct bgp_path_info *path =
|
||||||
|
bgp_node_get_bgp_path_info(bgp_node);
|
||||||
mpls_label_t *label = NULL;
|
mpls_label_t *label = NULL;
|
||||||
uint32_t num_labels = 0;
|
uint32_t num_labels = 0;
|
||||||
|
|
||||||
|
@ -715,7 +715,7 @@ static struct bgp_path_info *bgp4PathAttrLookup(struct variable *v, oid name[],
|
|||||||
if (rn) {
|
if (rn) {
|
||||||
bgp_unlock_node(rn);
|
bgp_unlock_node(rn);
|
||||||
|
|
||||||
for (path = bgp_info_from_node(rn); path;
|
for (path = bgp_node_get_bgp_path_info(rn); path;
|
||||||
path = path->next)
|
path = path->next)
|
||||||
if (sockunion_same(&path->peer->su, &su))
|
if (sockunion_same(&path->peer->su, &su))
|
||||||
return path;
|
return path;
|
||||||
@ -763,7 +763,7 @@ static struct bgp_path_info *bgp4PathAttrLookup(struct variable *v, oid name[],
|
|||||||
do {
|
do {
|
||||||
min = NULL;
|
min = NULL;
|
||||||
|
|
||||||
for (path = bgp_info_from_node(rn); path;
|
for (path = bgp_node_get_bgp_path_info(rn); path;
|
||||||
path = path->next) {
|
path = path->next) {
|
||||||
if (path->peer->su.sin.sin_family == AF_INET
|
if (path->peer->su.sin.sin_family == AF_INET
|
||||||
&& ntohl(paddr.s_addr)
|
&& ntohl(paddr.s_addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user