From e338c4b63c6a9258d858f158049943e1e8f00e6f Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 18 Sep 2023 14:12:22 +0200 Subject: Lib: Extend MPLS label allocator bitmap Add function lmap_last_one_in_range() for finding the last active label in a label range. --- lib/bitmap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/bitmap.h') diff --git a/lib/bitmap.h b/lib/bitmap.h index 4d2dc2a8..e3351ab1 100644 --- a/lib/bitmap.h +++ b/lib/bitmap.h @@ -79,6 +79,7 @@ void lmap_set(struct lmap *b, uint n); void lmap_clear(struct lmap *b, uint n); uint lmap_first_zero(struct lmap *b); uint lmap_first_zero_in_range(struct lmap *b, uint lo, uint hi); +uint lmap_last_one_in_range(struct lmap *b, uint lo, uint hi); void lmap_check(struct lmap *b); #endif -- cgit v1.2.3