summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-04-09 11:17:49 -0400
committerGitHub <noreply@github.com>2021-04-09 11:17:49 -0400
commit97bbb2c1c4b596945b33668d9ee1cf2a43eb91db (patch)
tree93c080ccd9a7077dbc43f4fdbddcbb2785ca0f16
parent750b1916b99423f441bedd68cba6a722e67485c7 (diff)
parent654527a1f0b30da38c7e9cbb5119760e62cdcb95 (diff)
Merge pull request #8433 from ton31337/fix/mpls_prd_dead_code
bgpd: Remove dead code regarding prefix_rd allocation
-rw-r--r--bgpd/bgp_mplsvpn.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c
index a902c63dea..62fed931f9 100644
--- a/bgpd/bgp_mplsvpn.c
+++ b/bgpd/bgp_mplsvpn.c
@@ -1417,7 +1417,6 @@ void vpn_leak_to_vrf_update_all(struct bgp *bgp_vrf, /* to */
struct bgp *bgp_vpn, /* from */
afi_t afi)
{
- struct prefix_rd prd;
struct bgp_dest *pdest;
safi_t safi = SAFI_MPLS_VPN;
@@ -1428,16 +1427,10 @@ void vpn_leak_to_vrf_update_all(struct bgp *bgp_vrf, /* to */
*/
for (pdest = bgp_table_top(bgp_vpn->rib[afi][safi]); pdest;
pdest = bgp_route_next(pdest)) {
- const struct prefix *p = bgp_dest_get_prefix(pdest);
struct bgp_table *table;
struct bgp_dest *bn;
struct bgp_path_info *bpi;
- memset(&prd, 0, sizeof(prd));
- prd.family = AF_UNSPEC;
- prd.prefixlen = 64;
- memcpy(prd.val, &p->u.val, 8);
-
/* This is the per-RD table of prefixes */
table = bgp_dest_get_bgp_table_info(pdest);