diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-17 11:29:31 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-22 09:01:04 +0300 | 
| commit | 8a4d336d380e64201683b1c07197af1160ccfb94 (patch) | |
| tree | a2cf6fe86bffa8d324292b2da523b80507a32365 /bgpd/bgp_debug.c | |
| parent | 601db6d4a6c98e99c164138c60f4f8ff473c3da1 (diff) | |
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.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 97c3e5740f..097d3684f6 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");  | 
