summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-10-17 10:29:31 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-10-22 08:01:04 +0200
commit8a4d336d380e64201683b1c07197af1160ccfb94 (patch)
treea2cf6fe86bffa8d324292b2da523b80507a32365 /bgpd/bgp_debug.c
parentbgpd: Check for the extended community size before setting the flag (diff)
downloadfrr-8a4d336d380e64201683b1c07197af1160ccfb94.tar.xz
frr-8a4d336d380e64201683b1c07197af1160ccfb94.zip
bgpd: Print ipv6 extended communities if debug updates is turned on
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index 97c3e5740..097d3684f 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -449,6 +449,10 @@ bool bgp_dump_attr(struct attr *attr, char *buf, size_t size)
", extcommunity %s",
ecommunity_str(bgp_attr_get_ecommunity(attr)));
+ if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_IPV6_EXT_COMMUNITIES)))
+ snprintf(buf + strlen(buf), size - strlen(buf), ", ipv6-extcommunity %s",
+ ecommunity_str(bgp_attr_get_ipv6_ecommunity(attr)));
+
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_ATOMIC_AGGREGATE)))
snprintf(buf + strlen(buf), size - strlen(buf),
", atomic-aggregate");