summaryrefslogtreecommitdiff
path: root/bgpd/bgp_table.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-11-16 08:50:26 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-11-16 09:43:35 -0500
commit5b00b40eec095ed2d4d667d496783153deb457e2 (patch)
treecd564d4f678b97c47a0463b11a131067dc516c1b /bgpd/bgp_table.h
parent5a8ba9fc0ad9f0d6d3ca3075bf229a2319eb5cc0 (diff)
bgpd: Cleanup bgp_distance_set|get function names
The bgp_distance_set_node_info and bgp_distance_get_node_info function names were slightly backwards lets fix them up to bgp_node_get_bgp_distance_info and bgp_node_set_bgp_distance_info Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_table.h')
-rw-r--r--bgpd/bgp_table.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bgpd/bgp_table.h b/bgpd/bgp_table.h
index 9fcf5c1c79..936d72ff19 100644
--- a/bgpd/bgp_table.h
+++ b/bgpd/bgp_table.h
@@ -331,13 +331,14 @@ bgp_node_set_bgp_aggregate_info(struct bgp_node *node,
node->info = aggregate;
}
-static inline struct bgp_distance *bgp_distance_get_node(struct bgp_node *node)
+static inline struct bgp_distance *
+bgp_node_get_bgp_distance_info(struct bgp_node *node)
{
return node->info;
}
-static inline void bgp_distance_set_node_info(struct bgp_node *node,
- struct bgp_distance *distance)
+static inline void bgp_node_set_bgp_distance_info(struct bgp_node *node,
+ struct bgp_distance *distance)
{
node->info = distance;
}