summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-23 08:05:47 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-25 09:02:30 +0100
commit9a706b42fb968795a9e2aeed53a2b164de846c77 (patch)
tree361794995dc88698b00d9a834e1de33d89f4f930 /bgpd/bgp_debug.c
parentMerge pull request #10615 from mobash-rasool/fixes (diff)
downloadfrr-9a706b42fb968795a9e2aeed53a2b164de846c77.tar.xz
frr-9a706b42fb968795a9e2aeed53a2b164de846c77.zip
bgpd: Reuse get/set helpers for attr->community
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index 82e05dc53..5d14ff0fa 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -411,7 +411,7 @@ bool bgp_dump_attr(struct attr *attr, char *buf, size_t size)
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_COMMUNITIES)))
snprintf(buf + strlen(buf), size - strlen(buf),
", community %s",
- community_str(attr->community, false));
+ community_str(bgp_attr_get_community(attr), false));
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_LARGE_COMMUNITIES)))
snprintf(buf + strlen(buf), size - strlen(buf),