summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-04 14:56:20 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-04 14:56:20 +0100
commitb53e67a389573b9d95a563331752e4e8b729c08f (patch)
tree46807e2486e0f603cfa8390b404a7698801d49ac /bgpd/bgp_debug.c
parentMerge pull request #10481 from mobash-rasool/pim-doc (diff)
downloadfrr-b53e67a389573b9d95a563331752e4e8b729c08f.tar.xz
frr-b53e67a389573b9d95a563331752e4e8b729c08f.zip
bgpd: Use bgp_attr_[sg]et_ecommunity for struct ecommunity
This is an extra work before moving attr->ecommunity to attra_extra struct. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index 64f71bebc..453d53e87 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -420,7 +420,8 @@ bool bgp_dump_attr(struct attr *attr, char *buf, size_t size)
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_EXT_COMMUNITIES)))
snprintf(buf + strlen(buf), size - strlen(buf),
- ", extcommunity %s", ecommunity_str(attr->ecommunity));
+ ", extcommunity %s",
+ ecommunity_str(bgp_attr_get_ecommunity(attr)));
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_ATOMIC_AGGREGATE)))
snprintf(buf + strlen(buf), size - strlen(buf),