diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 15:56:20 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 15:56:20 +0200 | 
| commit | b53e67a389573b9d95a563331752e4e8b729c08f (patch) | |
| tree | 46807e2486e0f603cfa8390b404a7698801d49ac /bgpd/bgp_debug.c | |
| parent | a89a78236cb03a2afa6dcc4227598964e6ca1a31 (diff) | |
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.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 64f71bebc9..453d53e876 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),  | 
