diff options
author | Russ White <russ@riw.us> | 2022-04-13 20:54:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 20:54:30 +0200 |
commit | 6a1dbeba2f7c7e678877e16ae0e18e5a4b9aae73 (patch) | |
tree | 6d5baa151d946772e640309d97e1811490445e69 /bgpd/bgp_route.c | |
parent | Merge pull request #11009 from opensourcerouting/fix/med_for_aggregate-address (diff) | |
parent | bgpd: Fix styling, drop braces for single statement block (diff) | |
download | frr-6a1dbeba2f7c7e678877e16ae0e18e5a4b9aae73.tar.xz frr-6a1dbeba2f7c7e678877e16ae0e18e5a4b9aae73.zip |
Merge pull request #11010 from opensourcerouting/feature/reuse_bgp_attr_set_community_for_flags
bgpd: Reuse bgp_attr_set_[el]community() for setting attribute flags
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index abf5bd2bd..abf14778d 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1769,7 +1769,6 @@ void bgp_attr_add_llgr_community(struct attr *attr) community_free(&llgr); bgp_attr_set_community(attr, new); - attr->flag |= ATTR_FLAG_BIT(BGP_ATTR_COMMUNITIES); } void bgp_attr_add_gshut_community(struct attr *attr) @@ -1798,7 +1797,6 @@ void bgp_attr_add_gshut_community(struct attr *attr) community_free(&gshut); bgp_attr_set_community(attr, new); - attr->flag |= ATTR_FLAG_BIT(BGP_ATTR_COMMUNITIES); /* When we add the graceful-shutdown community we must also * lower the local-preference */ @@ -3711,7 +3709,6 @@ static void bgp_attr_add_no_export_community(struct attr *attr) community_free(&no_export); bgp_attr_set_community(attr, new); - attr->flag |= ATTR_FLAG_BIT(BGP_ATTR_COMMUNITIES); } int bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id, |