summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-02 16:52:40 +0100
committerDonald Sharp <sharpd@nvidia.com>2020-11-15 15:44:47 +0100
commit2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31 (patch)
tree02cc2648c61ab31a0a80d4c2dbc994807f6103b5 /bgpd/bgp_debug.c
parentbgpd: Allow NULL to be passed in for ecommunity_free (diff)
downloadfrr-2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31.tar.xz
frr-2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31.zip
bgpd: Add accessor for bgp_attr.pmsi_tnl_type
Add an accessor for the bgp_attr.pmsi_tnl_type to allow us to abstract where it is. Every attribute is paying the price of this bit of data as part of `struct bgp_attr` In the future we'll move it elsewhere. Signed-off-by: Donald Sharp <sharpd@nvidia.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 c2c2d17a2..811634e8e 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -440,7 +440,7 @@ bool bgp_dump_attr(struct attr *attr, char *buf, size_t size)
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_PMSI_TUNNEL)))
snprintf(buf + strlen(buf), size - strlen(buf),
- ", pmsi tnltype %u", attr->pmsi_tnl_type);
+ ", pmsi tnltype %u", bgp_attr_get_pmsi_tnl_type(attr));
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AS_PATH)))
snprintf(buf + strlen(buf), size - strlen(buf), ", path %s",