Blame 0005-json-c-0.14.0.patch
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
index 5f4486b80..da57ffa83 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
--- a/bgpd/bgp_route.c
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
+++ b/bgpd/bgp_route.c
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
@@ -9922,7 +9922,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
}
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
} else if (safi == SAFI_EVPN) {
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
struct bgp_node *longest_pfx;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
- bool is_exact_pfxlen_match = FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
+ bool is_exact_pfxlen_match = false;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
fbca0ae |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
for (rn = bgp_table_top(rib); rn; rn = bgp_route_next(rn)) {
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
if (prd && memcmp(rn->p.u.val, prd->val, 8) != 0)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
@@ -9932,7 +9932,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
continue;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
longest_pfx = NULL;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
- is_exact_pfxlen_match = FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
+ is_exact_pfxlen_match = false;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
/*
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
* Search through all the prefixes for a match. The
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
* pfx's are enumerated in ascending order of pfxlens.
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
@@ -9951,7 +9951,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
int type5_pfxlen =
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
bgp_evpn_get_type5_prefixlen(&rm->p);
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
if (type5_pfxlen == match.prefixlen) {
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
- is_exact_pfxlen_match = TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
+ is_exact_pfxlen_match = true;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
bgp_unlock_node(rm);
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
break;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
57c8988 |
}
|