diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-11-02 16:52:40 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-15 15:44:47 +0100 |
commit | 2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31 (patch) | |
tree | 02cc2648c61ab31a0a80d4c2dbc994807f6103b5 /bgpd/bgp_debug.c | |
parent | bgpd: Allow NULL to be passed in for ecommunity_free (diff) | |
download | frr-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.c | 2 |
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", |