diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-09-18 14:12:22 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-10-04 13:07:33 +0200 |
commit | e338c4b63c6a9258d858f158049943e1e8f00e6f (patch) | |
tree | 2bdf6767e32edbbb12d75760ed8be9f1ed623471 /lib/bitmap.h | |
parent | bcff3ae79acfd938459869ac98db4f83e3d422b6 (diff) |
Lib: Extend MPLS label allocator bitmap
Add function lmap_last_one_in_range() for finding the last active label
in a label range.
Diffstat (limited to 'lib/bitmap.h')
-rw-r--r-- | lib/bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |