From 2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 2 Nov 2020 10:52:40 -0500 Subject: 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 --- bgpd/bgp_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bgpd/bgp_debug.c') diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index c2c2d17a24..811634e8e0 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", -- cgit v1.2.3