summaryrefslogtreecommitdiff
path: root/bgpd/bgp_attr.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-02 10:52:40 -0500
committerDonald Sharp <sharpd@nvidia.com>2020-11-15 09:44:47 -0500
commit2a3f51cf6ba298ab42b7b51a2d879b46baa2ee31 (patch)
tree02cc2648c61ab31a0a80d4c2dbc994807f6103b5 /bgpd/bgp_attr.h
parentdf7d4670ea9dd8aa35457abeb5827e074cca7514 (diff)
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_attr.h')
-rw-r--r--bgpd/bgp_attr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h
index ef0e74344a..6ce5d18942 100644
--- a/bgpd/bgp_attr.h
+++ b/bgpd/bgp_attr.h
@@ -457,4 +457,16 @@ static inline uint32_t mac_mobility_seqnum(struct attr *attr)
{
return (attr) ? attr->mm_seqnum : 0;
}
+
+static inline enum pta_type bgp_attr_get_pmsi_tnl_type(struct attr *attr)
+{
+ return attr->pmsi_tnl_type;
+}
+
+static inline void bgp_attr_set_pmsi_tnl_type(struct attr *attr,
+ enum pta_type pmsi_tnl_type)
+{
+ attr->pmsi_tnl_type = pmsi_tnl_type;
+}
+
#endif /* _QUAGGA_BGP_ATTR_H */