summaryrefslogtreecommitdiff
path: root/nest/mpls.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-09-18 17:32:24 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-04 13:12:05 +0200
commit8e9e013b0ddec438151c9d12fd4bac079c350310 (patch)
treeb66860cc8df9d875f771811af7bc0294f97a77e9 /nest/mpls.h
parent3397ca51f8a33e6ef97ab5ec7209dfce7051bc5d (diff)
MPLS: Add command 'show mpls ranges'
Add command to show MPLS label ranges and their stats.
Diffstat (limited to 'nest/mpls.h')
-rw-r--r--nest/mpls.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/nest/mpls.h b/nest/mpls.h
index 4b071ad8..bac5c69d 100644
--- a/nest/mpls.h
+++ b/nest/mpls.h
@@ -171,4 +171,15 @@ void mpls_handle_rte_cleanup(struct mpls_fec_map *m, struct mpls_fec **locked_fe
void mpls_rte_insert(net *n UNUSED, rte *r);
void mpls_rte_remove(net *n UNUSED, rte *r);
+
+struct mpls_show_ranges_cmd {
+ struct mpls_domain_config *domain;
+ struct mpls_range_config *range;
+
+ /* Runtime */
+ struct mpls_domain *dom;
+};
+
+void mpls_show_ranges(struct mpls_show_ranges_cmd *cmd);
+
#endif